We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb680c3 commit 2978982Copy full SHA for 2978982
1 file changed
resources/lib/twitch/api/parameters.py
@@ -76,7 +76,9 @@ class Cursor(_Parameter):
76
@classmethod
77
def validate(cls, value):
78
try:
79
- decoded = int(b64decode(value))
+ padding = (4 - len(value) % 4) % 4
80
+ padding *= '='
81
+ decoded = b64decode(value + padding)
82
return value
83
except ValueError:
84
raise ValueError(value)
0 commit comments