From: Arkadiusz Miƛkiewicz Date: Mon, 26 Dec 2005 02:39:27 +0000 (+0000) Subject: - print some debugging info when things go wrong way X-Git-Url: https://git.pld-linux.org/?a=commitdiff_plain;h=d7d955768c251641cb1e008ecace851fb9cfb270;hp=a5ae6c4f8752d684fc5729c8c34f9a9283c7db79;p=projects%2Fpld-ftp-admin.git - print some debugging info when things go wrong way Changed files: modules/ftptree.py -> 1.26 --- diff --git a/modules/ftptree.py b/modules/ftptree.py index f5321ba..a879897 100644 --- a/modules/ftptree.py +++ b/modules/ftptree.py @@ -31,7 +31,7 @@ def rm(file): def mv(src, dst): try: os.rename(src, dst+'/'+src.split('/')[-1]) - except OSError, e + except OSError, e: pinfo "os.rename(%s, %s): %s" % (src, dst+'/'+src.split('/')[-1], e) class Pkg(BasePkg):