fixed error handling for python 2.7+

This commit is contained in:
Rob Weber
2019-08-19 15:23:48 -05:00
parent d0b1d6bb34
commit 4513eb67f9
6 changed files with 18 additions and 36 deletions

View File

@@ -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