From 72abfb455275546e110e4daf811480dd47ffceea Mon Sep 17 00:00:00 2001 From: RaNaN Date: Thu, 12 Aug 2010 22:44:41 +0200 Subject: improvements --- module/pyunrar.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'module/pyunrar.py') 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)) -- cgit v1.2.3