Skip to content

Commit b507176

Browse files
committed
fix refresh token is a byte string
1 parent 9e113c4 commit b507176

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

resin/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from .twofactor_auth import TwoFactorAuth
1616

1717

18-
__version__ = '1.5.3'
18+
__version__ = '1.5.5'
1919

2020

2121
class Resin(object):

resin/base_request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ def _request_new_token(self):
186186
response = requests.get(url, headers=headers)
187187
if not response.ok:
188188
raise exceptions.RequestError(response._content)
189-
return response.content
189+
return response.content.decode('utf-8')
190190

191191

192192
class Util(object):

0 commit comments

Comments
 (0)