You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello guys, i got an issue when deepdiff didn't raise an exception but just printed errors to the output stream
Can not produce a hash for root['element'].Not counting this object.
So it couldn't compare objects for a reason, but the diff completed successfully and the result was empty when there were really differences between the objects. My program is not reading for errors from the output stream and was just relying on the diff result, so it ended up having unreliable successful result. I cannot reproduce the error message anymore, but if there is a reason for not raising an exception directly, can there be a flag or something that forces failures in case of errors or any other idea how to deal with the scenario? From the diff.py
except Exception as e: # pragma: no cover
logger.error("Can not produce a hash for %s."
"Not counting this object.\n %s" %
(level.path(), e))
OS: Ubuntu
Version 22.04.4 LTS
Python Version 3.10.12
DeepDiff Version 6.3.0
The text was updated successfully, but these errors were encountered:
Hello guys, i got an issue when deepdiff didn't raise an exception but just printed errors to the output stream
So it couldn't compare objects for a reason, but the diff completed successfully and the result was empty when there were really differences between the objects. My program is not reading for errors from the output stream and was just relying on the diff result, so it ended up having unreliable successful result. I cannot reproduce the error message anymore, but if there is a reason for not raising an exception directly, can there be a flag or something that forces failures in case of errors or any other idea how to deal with the scenario? From the diff.py
The text was updated successfully, but these errors were encountered: