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
File "/usr/local/lib/python3.7/site-packages/pybrake/queries.py" in notify
61. if key in self._stats:
Exception Value: unhashable type: 'Composed'
This seems to arise because query_stat_key def query_stat_key(*, query="", method="", route="", time=None): is used to create a dictionary key, which would only be valid if the query object is hashable.
The text was updated successfully, but these errors were encountered:
Fixes#156. Replaces #157.
This updates pybrake's wrapper `CursorWrapper` to convert SQL Composed
objects into strings before sending query stats to Airbrake. Converting
them to strings will result in better query readability on the
Performance Dashboard. There was also a bug where the notifier would
raise an error because it was not able to process the Composed object.
With this change, that should be fixed.
Big thanks to @mlennon-spr for reporting the bug and presenting the solution!
Raises an error: unhashable type: 'Composed':
This seems to arise because query_stat_key
def query_stat_key(*, query="", method="", route="", time=None):
is used to create a dictionary key, which would only be valid if the query object is hashable.The text was updated successfully, but these errors were encountered: