Open djm opened 1 year ago
Full [redacted] stack trace
Traceback (most recent call last):
...
File "[..snip...]/side_effects/management/commands/display_side_effects.py", line 98, in handle
events = sort_events(
File "[..snip...]/side_effects/management/commands/display_side_effects.py", line 27, in sort_events
return {
File "[..snip...]/side_effects/management/commands/display_side_effects.py", line 28, in <dictcomp>
label: sorted(handlers, key=handler_sort_key)
TypeError: '<' not supported between instances of 'NoneType' and 'list'
task: Failed to run task "freeze-snapshots": exit status 1
This is a bug in the --sorted
option. The command itself handles functions missing docstrings, but if you try and sort the output it blows up.
When running
python manage.py display_side_effects
against a codebase with a side-effect that does not have a docstring defined - it errors hard with a very hard to grok error message.