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
An exception is thrown when the attempts value from the cache is cleared. This could happen if the value is removed between lines 307 and 311. A further check is necessary before comparison on line 312.
TypeError: '>=' not supported between instances of 'NoneType' and 'int'
(9 additional frame(s) were not displayed)
...
File "onadata/libs/authentication.py", line 113, in authenticate
attempts = login_attempts(request)
File "onadata/libs/authentication.py", line 312, in login_attempts
if attempts >= getattr(settings, "MAX_LOGIN_ATTEMPTS", 10):
Expected behaviour
No exception thrown.
Steps to reproduce the behavior
Difficult to replicate unless in debugging or with mock testing.
Additional Information
The text was updated successfully, but these errors were encountered:
Environmental Information
Problem description
An exception is thrown when the
attempts
value from the cache is cleared. This could happen if the value is removed between lines 307 and 311. A further check is necessary before comparison on line 312.Expected behaviour
No exception thrown.
Steps to reproduce the behavior
Difficult to replicate unless in debugging or with mock testing.
Additional Information
The text was updated successfully, but these errors were encountered: