Add zipfile namespace to except clause

(transplanted from 7e4362f4987dc4f04050ec779c45ba236fa1e0b5)
This commit is contained in:
Nicolas Évrard committed 2011-10-28 10:17:05 +02:00
1 parent 6626071a20
commit f53a444e05
1 file changed
+1 -1
+1 -1
View File
@@ -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')