mirror of
https://github.com/domainaware/parsedmarc.git
synced 2026-03-26 00:12:46 +00:00
@@ -390,9 +390,11 @@ def extract_xml(input_):
|
||||
file_object.close()
|
||||
|
||||
except UnicodeDecodeError:
|
||||
file_object.close()
|
||||
raise InvalidAggregateReport("File objects must be opened in binary "
|
||||
"(rb) mode")
|
||||
except Exception as error:
|
||||
file_object.close()
|
||||
raise InvalidAggregateReport(
|
||||
"Invalid archive file: {0}".format(error.__str__()))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user