Add zipfile namespace to except clause

This commit is contained in:
Nicolas Évrard committed 2011-10-28 10:17:05 +02:00
1 parent 7689f3df45
commit 5d25474b2f
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')