Skip to content

Commit

Permalink
fix: deburr some debugging code
Browse files Browse the repository at this point in the history
  • Loading branch information
rjsparks committed Feb 6, 2025
1 parent 78c94a6 commit f5d59bc
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions ietf/doc/storage_backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ def store_file(
if not allow_overwrite and not is_new:
log(f"Failed to save {kind}:{name} - name already exists in store")
debug.show('f"Failed to save {kind}:{name} - name already exists in store"')
debug.traceback()
raise Exception("Not ignoring overwrite attempts while testing")
# raise Exception("Not ignoring overwrite attempts while testing")
else:
try:
new_name = self.save(name, file)
Expand Down Expand Up @@ -69,11 +68,9 @@ def store_file(
except Exception as e:
# Log and then swallow the exception while we're learning.
# Don't let failure pass so quietly when these are the autoritative bits.
log(f"Failed to save {kind}:{name}", e)
raise e
debug.show("type(e)")
debug.show("e")
debug.traceback()
complaint = f"Failed to save {kind}:{name}"
log(complaint, e)
debug.show('f"{complaint}: {e}')
finally:
del self.in_flight_custom_metadata[name]
return None
Expand Down

0 comments on commit f5d59bc

Please sign in to comment.