git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
AuthMethod is a must so return if it's missing
[plcapi.git]
/
aspects
/
ratelimitaspects.py
diff --git
a/aspects/ratelimitaspects.py
b/aspects/ratelimitaspects.py
index
9a309f4
..
84af023
100644
(file)
--- a/
aspects/ratelimitaspects.py
+++ b/
aspects/ratelimitaspects.py
@@
-40,7
+40,11
@@
class BaseRateLimit(object):
api_method_name = wobj.name
api_method_source = wobj.source
- api_method = args[0]["AuthMethod"]
+
+ try:
+ api_method = args[0]["AuthMethod"]
+ except:
+ return
if api_method == "session":
api_method_caller = args[0]["session"]