mirror of
https://github.com/robweber/xbmcbackup.git
synced 2025-11-23 11:41:30 +01:00
fixed error handling for python 2.7+
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import xbmc
|
||||
import utils as utils
|
||||
|
||||
class ZipExtractor:
|
||||
@@ -24,8 +23,7 @@ class ZipExtractor:
|
||||
#extract the file
|
||||
zipFile.extract(aFile,outLoc)
|
||||
|
||||
except Exception,e:
|
||||
print str(e)
|
||||
except Exception as e:
|
||||
utils.log("Error extracting file")
|
||||
result = False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user