Skip to content

fix(aurweb): resolve exception in ratelimit

Jelle van der Waa requested to merge jelle/aurweb:redis_cache into master

Redis's get() method can return None which makes an RPC request error out:

File "/srv/http/aurweb/aurweb/ratelimit.py", line 103, in check_ratelimit requests = int(requests.decode()) AttributeError: 'NoneType' object has no attribute 'decode'

Merge request reports