Skip to content

Commit

Permalink
fix for generic error
Browse files Browse the repository at this point in the history
  • Loading branch information
jpoehnelt committed Mar 11, 2016
1 parent 4a43ef1 commit a5c3ec7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flask_urs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def _token_url(self):
def callback(self):
code = request.args.get('code', None)
if code is None:
raise Exception
raise URSError('Invalid Code', 'No Authorization Code in Arguments')

access = self.get_token(code)
user = self.get_user(access['access_token'], access['endpoint'])
Expand Down

0 comments on commit a5c3ec7

Please sign in to comment.