diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-08-12 22:44:41 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-08-12 22:44:41 +0200 |
commit | 72abfb455275546e110e4daf811480dd47ffceea (patch) | |
tree | 4f6955a97af4600c31dffc5941a57640d81da0a3 /module/pyunrar.py | |
parent | encoding fix try (diff) | |
download | pyload-72abfb455275546e110e4daf811480dd47ffceea.tar.xz |
improvements
Diffstat (limited to 'module/pyunrar.py')
-rw-r--r-- | module/pyunrar.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/module/pyunrar.py b/module/pyunrar.py index 4db3c3a19..6bb240965 100644 --- a/module/pyunrar.py +++ b/module/pyunrar.py @@ -270,7 +270,7 @@ class Unrar(): if overwrite: try: remove(abspath(join(destination, sf[0]))) - except OSError as e: + except OSError, e: if not e.errno == 2: raise e f = sf[0] @@ -278,7 +278,7 @@ class Unrar(): if fullPath: try: makedirs(dirname(join(abspath(destination), sf[0]))) - except OSError as e: + except OSError, e: if not e.errno == 17: raise e d = join(destination, dirname(f)) |