-
Hello, Trying to modify my GlobaLeaks app 4.10.18, an exception was thrown in orm.py, one of the modified files. The changes applied to this file is a small part of capturing InvalidAuthentication errors. And the error that appears is following: _Version: 4.10.18 NameError Name not found globally. Traceback (most recent call last): File "/var/globaleaks/backend/globaleaks/orm.py", line 178, in _wrap
File "/var/globaleaks/backend/globaleaks/handlers/authentication.py", line 118, in login
AttributeError: 'User' object has no attribute 'hash' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/var/globaleaks/backend/env/lib64/python3.6/site-packages/twisted/internet/defer.py", line 1416, in _inlineCallbacks
File "/var/globaleaks/backend/env/lib64/python3.6/site-packages/twisted/python/failure.py", line 512, in throwExceptionIntoGenerator
File "/var/globaleaks/backend/globaleaks/handlers/authentication.py", line 187, in post
File "/var/globaleaks/backend/env/lib64/python3.6/site-packages/twisted/python/threadpool.py", line 250, in inContext
File "/var/globaleaks/backend/env/lib64/python3.6/site-packages/twisted/python/threadpool.py", line 266, in
File "/var/globaleaks/backend/env/lib64/python3.6/site-packages/twisted/python/context.py", line 122, in callWithContext
File "/var/globaleaks/backend/env/lib64/python3.6/site-packages/twisted/python/context.py", line 85, in callWithContext
File "/var/globaleaks/backend/globaleaks/orm.py", line 193, in _wrap
NameError: name 'errors' is not defined_ Does anyone know why this may be happening or has had a similar excepcion? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Thank you for the question @S03M I see what you are implementing, it is actually a right point what you are trying to correct and we will evaluate to fix it next developmens. Regarding your attempt of patch, maybe you are forgetting to import "errors" ? |
Beta Was this translation helpful? Give feedback.
First of all, thank you very much.
Errors it was imported but it was imported with a not quite correct path and a part of that had to be deleted.
Now it is working correctly, because the image above is the simplest way we have found to make this functionality work.
Thanks!