Commit c9e3b602 authored by parciak's avatar parciak
Browse files

Removed workaround for debugging regarding writing to files.



Signed-off-by: parciak's avatarMarcel Parciak <marcel.parciak@gmail.com>
parent c6488195
Pipeline #146795 failed with stage
in 17 seconds
......@@ -86,18 +86,14 @@ def write_state_to_metafile(new_state: AnnotationState, path: str) -> bool:
if new_state in [AnnotationState.started, AnnotationState.completed]:
state[f"{new_state}_at"] = datetime.datetime.now().isoformat()
with open(path, "w+") as m_f:
json.dump(state, m_f)
"""
try:
with open(path, "w+") as m_f:
json.dump(state, m_f)
except:
error_log.error(f"Could not create or write to file: {path}.")
t, v, tb = sys.exc_info()
error_log.error("\n".join(traceback.format_exception(etype=t, value=v, tb=tb)))
return False
"""
return True
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment