|
@@ -146,6 +146,9 @@ class labkeyInterface:
|
|
|
except AttributeError:
|
|
|
print('Failed')
|
|
|
return None
|
|
|
+ except chardet.UnicodeDecodeError:
|
|
|
+ encoding='ASCII'
|
|
|
+ jsonData=json.loads(response.data.decode(encoding))
|
|
|
|
|
|
self.cookie=response.getheader('Set-Cookie')
|
|
|
print('User: {} CSRF: {}'.format(jsonData['displayName'],jsonData['CSRF']))
|