Skip to content

Commit

Permalink
ignore 404 for database get also.
Browse files Browse the repository at this point in the history
  • Loading branch information
jesseshieh committed Feb 23, 2021
1 parent 225f9ff commit c089d83
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gigalixir/database.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import requests
import logging
from . import auth
from . import api_exception
from . import presenter
import urllib
import json
Expand All @@ -16,7 +17,7 @@ def get(host, app_name):
if r.status_code != 200:
if r.status_code == 401:
raise auth.AuthException()
raise Exception(r.text)
raise api_exception.ApiException(r)
else:
data = json.loads(r.text)["data"]
presenter.echo_json(data)
Expand Down

0 comments on commit c089d83

Please sign in to comment.