Add zipfile namespace to except clause
(transplanted from 7e4362f4987dc4f04050ec779c45ba236fa1e0b5)
This commit is contained in:
1 parent
6626071a20
commit
f53a444e05
1 file changed
+1
-1
@@ -659,7 +659,7 @@ class ReportTranslationSet(Wizard):
|
||||
content_io = StringIO.StringIO(content)
|
||||
try:
|
||||
content_z = zipfile.ZipFile(content_io, mode='r')
|
||||
except BadZipfile:
|
||||
except zipfile.BadZipfile:
|
||||
continue
|
||||
|
||||
content_xml = content_z.read('content.xml')
|
||||
|
||||
Reference in new issue
Block a user