Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoneType error in finding post processing during unit tests #11958

Open
valentijnscholten opened this issue Mar 5, 2025 · 0 comments
Open

NoneType error in finding post processing during unit tests #11958

valentijnscholten opened this issue Mar 5, 2025 · 0 comments
Labels

Comments

@valentijnscholten
Copy link
Member

valentijnscholten commented Mar 5, 2025

quick dump here of error occuring during unit tests in our github action test suite, tests don't seem to fail strangely enough:

celeryworker-1      | [05/Mar/2025 20:06:22] ERROR [celery.app.trace:267] Task dojo.finding.helper.post_process_finding_save[30d495d4-3be2-4196-ae33-2563215043fa] raised unexpected: AttributeError("'NoneType' object has no attribute 'hash_code'")
celeryworker-1      | Traceback (most recent call last):
celeryworker-1      |   File "/usr/local/lib/python3.11/site-packages/celery/app/trace.py", line 453, in trace_task
celeryworker-1      |     R = retval = fun(*args, **kwargs)
celeryworker-1      |                  ^^^^^^^^^^^^^^^^^^^^
celeryworker-1      |   File "/usr/local/lib/python3.11/site-packages/celery/app/trace.py", line 736, in __protected_call__
celeryworker-1      |     return self.run(*args, **kwargs)
celeryworker-1      |            ^^^^^^^^^^^^^^^^^^^^^^^^^
celeryworker-1      |   File "/app/dojo/decorators.py", line 116, in __wrapper__
celeryworker-1      |     return func(*args, **kwargs)
celeryworker-1      |            ^^^^^^^^^^^^^^^^^^^^^
celeryworker-1      |   File "/app/dojo/finding/helper.py", line 358, in post_process_finding_save
celeryworker-1      |     if finding.hash_code is not None:
celeryworker-1      |        ^^^^^^^^^^^^^^^^^
celeryworker-1      | AttributeError: 'NoneType' object has no attribute 'hash_code'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant