Skip to content
Snippets Groups Projects

Fix zip file export

Merged Daniel Hornung requested to merge f-fix-zip-files into dev
1 file
+ 2
4
Compare changes
  • Side-by-side
  • Inline
@@ -71,9 +71,7 @@ def collect_files_in_zip(ids, table):
# download and add all files
for file_id in ids:
try:
tmp = db.execute_query("FIND FILE WITH ID={a:}".format(
a=file_id),
unique=True)
tmp = db.get_entity_by_id(file_id, role="FILE")
except EntityDoesNotExistError as e:
# TODO
# Current behavior: script terminates with error if just one
@@ -82,7 +80,7 @@ def collect_files_in_zip(ids, table):
# ids, but the user should be informed about the missing files.
# How should we do this?
logger = logging.getLogger("caosadvancedtools")
logger.error("Did not find Entity with ID={}.".format(
logger.error("Did not find File with ID={}.".format(
file_id))
raise e
Loading