Skip to content

Commit 119c114

Browse files
committed
Added defaults for clients.py, should fix update problems
1 parent 11a31d6 commit 119c114

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

core/clients.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,15 @@ class Github(ApiClient):
5050
STAR_URL = BASE + '/user/starred/kyb3r/modmail'
5151

5252
def __init__(self, bot: Bot,
53-
access_token: str = None,
54-
username: str = None,
53+
access_token: str = '',
54+
username: str = '',
5555
**kwargs):
5656
super().__init__(bot)
5757
self.access_token = access_token
5858
self.username = username
59-
self.id: str = kwargs.pop('id')
60-
self.avatar_url: str = kwargs.pop('avatar_url')
61-
self.url: str = kwargs.pop('url')
59+
self.id: str = kwargs.pop('id', '')
60+
self.avatar_url: str = kwargs.pop('avatar_url', '')
61+
self.url: str = kwargs.pop('url', '')
6262
if self.access_token:
6363
self.headers = {'Authorization': 'token ' + str(access_token)}
6464

0 commit comments

Comments
 (0)