Skip to content
Snippets Groups Projects
Verified Commit 0ac43bb3 authored by Daniel Hornung's avatar Daniel Hornung
Browse files

WIP: Modernizing zip files.

parent 97ebd7f5
No related branches found
No related tags found
2 merge requests!147Release 0.15.1,!146Fix zip file export
Pipeline #58004 passed
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment