handle permission error correctly

This commit is contained in:
Morgan McMillian 2021-03-06 11:06:38 -08:00
parent 249d21eea4
commit 4bebfcbc76

View file

@ -77,6 +77,9 @@ def query_alias(alias):
db_session.add(rr)
db_session.commit()
except pnutpy.errors.PnutPermissionDenied:
abort(401)
except Exception:
logger.exception("-couldn't get the pnut channel-")
abort(404)