File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 5
5
# Copyright (C) 2007 Lukáš Lalinský
6
6
# Copyright (C) 2009 Carlin Mangar
7
7
# Copyright (C) 2017 Sambhav Kothari
8
- # Copyright (C) 2018-2022 Philipp Wolfer
8
+ # Copyright (C) 2018-2022, 2024 Philipp Wolfer
9
9
# Copyright (C) 2018-2023 Laurent Monin
10
10
# Copyright (C) 2021 Tche333
11
11
#
@@ -220,8 +220,9 @@ def has_auth(self):
220
220
return self .mblogin and self .access_token
221
221
222
222
def _update_authorization_header (self ):
223
- auth = 'Bearer ' + self .access_token if self .has_auth else ''
224
- self .setRawHeader (b'Authorization' , auth .encode ('utf-8' ))
223
+ if self .has_auth :
224
+ auth = 'Bearer ' + self .access_token
225
+ self .setRawHeader (b'Authorization' , auth .encode ('utf-8' ))
225
226
226
227
@property
227
228
def host (self ):
You can’t perform that action at this time.
0 commit comments