Skip to content

Commit

Permalink
Merge pull request #171 from begoldsm/master
Browse files Browse the repository at this point in the history
Fix potential KeyError indexing before publish.
  • Loading branch information
begoldsm authored Jul 6, 2017
2 parents 48503d1 + d27e3d6 commit 03e8ac1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion azure/datalake/store/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def refresh_token(self, authority=None):
authority: string
The full URI of the authentication authority to authenticate against (such as https://login.microsoftonline.com/)
"""
if self.token.get('refresh', False) is False and (not self.token['secret'] or not self.token['client']):
if self.token.get('refresh', False) is False and (not self.token.get('secret') or not self.token.get('client')):
raise ValueError("Token cannot be auto-refreshed.")

if not authority:
Expand Down

0 comments on commit 03e8ac1

Please sign in to comment.