Skip to content

Commit 6301a66

Browse files
committed
fix(api): Fix minor bug in api.call method
1 parent 18f9014 commit 6301a66

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

codeforces/api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,11 @@ def call(method, key=None, secret=None, **kwargs):
7070
}
7171
elif err.code in (429, 503):
7272
time.sleep(1)
73-
return call(method, key, secret, **kargs)
73+
return call(method, key, secret, **kwargs)
7474
else:
7575
raise
7676

7777
if data['status'] == 'FAILED':
78-
raise error.CodeforcesAPIError(data['comment'], method, kargs)
78+
raise error.CodeforcesAPIError(data['comment'], method, kwargs)
7979

8080
return data['result']

0 commit comments

Comments
 (0)