Skip to content

Commit

Permalink
Merge pull request #16 from mitchellhuang/authorize-fix
Browse files Browse the repository at this point in the history
[Major bug] Fix self.authorized return if we need to self._authorize
  • Loading branch information
sibblegp authored Aug 9, 2018
2 parents 684f0aa + 407eaee commit 450c244
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions b2blaze/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ def authorized(self):
else:
if (datetime.datetime.utcnow() - self.authorized_at) > datetime.timedelta(hours=23):
self._authorize()
else:
return True
return True


def _authorize(self):
Expand Down

0 comments on commit 450c244

Please # to comment.