Skip to content

Commit e8149e5

Browse files
artemrysArtem Rys
authored andcommitted
fix: incorrect usage of traceback.format_exc function
Exception was passed to traceback.format_exc which is incorrect and it caused `TypeError: '>=' not supported between instances of 'HTTPError' and 'int'` error.
1 parent 0dccaa5 commit e8149e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

solnlib/modular_input/checkpointer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ def get(self, key):
229229
record = self._collection_data.query_by_id(key)
230230
except binding.HTTPError as e:
231231
if e.status != 404:
232-
logging.error("Get checkpoint failed: %s.", traceback.format_exc(e))
232+
logging.error("Get checkpoint failed: %s.", traceback.format_exc())
233233
raise
234234

235235
return None
@@ -242,7 +242,7 @@ def delete(self, key):
242242
self._collection_data.delete_by_id(key)
243243
except binding.HTTPError as e:
244244
if e.status != 404:
245-
logging.error("Delete checkpoint failed: %s.", traceback.format_exc(e))
245+
logging.error("Delete checkpoint failed: %s.", traceback.format_exc())
246246
raise
247247

248248

0 commit comments

Comments
 (0)