Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Commit

Permalink
bug_fix on line 281 of w_juju.py
Browse files Browse the repository at this point in the history
when no authorization header was provided, the abort threw an exception
  • Loading branch information
gvseghbr authored Apr 23, 2018
1 parent 6e55721 commit 44c9d5f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion files/sojobo_api/api/w_juju.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,8 @@ def get_connection_info(authorization, c_name=None, m_name=None):
else:
return datastore.get_user_connection_info(authorization.username)
else:
abort(errors.unauthorized)
error = errors.unauthorized()
abort(error[0], error[1])


async def disconnect(connection):
Expand Down

0 comments on commit 44c9d5f

Please sign in to comment.