log_error is not a function in utils/logger.py; changed to log_err in utils/dbserialize.py
This commit is contained in:
parent
4364dc8ede
commit
fb83d7f277
1 changed files with 3 additions and 3 deletions
|
|
@ -577,7 +577,7 @@ def to_pickle(data):
|
||||||
except TypeError:
|
except TypeError:
|
||||||
return item
|
return item
|
||||||
except Exception:
|
except Exception:
|
||||||
logger.log_error(f"The object {item} of type {type(item)} could not be stored.")
|
logger.log_err(f"The object {item} of type {type(item)} could not be stored.")
|
||||||
raise
|
raise
|
||||||
|
|
||||||
return process_item(data)
|
return process_item(data)
|
||||||
|
|
@ -716,7 +716,7 @@ def do_pickle(data):
|
||||||
try:
|
try:
|
||||||
return dumps(data, protocol=PICKLE_PROTOCOL)
|
return dumps(data, protocol=PICKLE_PROTOCOL)
|
||||||
except Exception:
|
except Exception:
|
||||||
logger.log_error(f"Could not pickle data for storage: {data}")
|
logger.log_err(f"Could not pickle data for storage: {data}")
|
||||||
raise
|
raise
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -725,7 +725,7 @@ def do_unpickle(data):
|
||||||
try:
|
try:
|
||||||
return loads(to_bytes(data))
|
return loads(to_bytes(data))
|
||||||
except Exception:
|
except Exception:
|
||||||
logger.log_error(f"Could not unpickle data from storage: {data}")
|
logger.log_err(f"Could not unpickle data from storage: {data}")
|
||||||
raise
|
raise
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue