handle permission error correctly
This commit is contained in:
parent
249d21eea4
commit
4bebfcbc76
1 changed files with 3 additions and 0 deletions
|
@ -77,6 +77,9 @@ def query_alias(alias):
|
||||||
db_session.add(rr)
|
db_session.add(rr)
|
||||||
db_session.commit()
|
db_session.commit()
|
||||||
|
|
||||||
|
except pnutpy.errors.PnutPermissionDenied:
|
||||||
|
abort(401)
|
||||||
|
|
||||||
except Exception:
|
except Exception:
|
||||||
logger.exception("-couldn't get the pnut channel-")
|
logger.exception("-couldn't get the pnut channel-")
|
||||||
abort(404)
|
abort(404)
|
||||||
|
|
Loading…
Reference in a new issue