projects
/
be.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9464b2
)
util:wsgi: catch NoIDMatches in BEExceptionApp
author
W. Trevor King
<wking@tremily.us>
Sun, 28 Oct 2012 23:00:32 +0000
(19:00 -0400)
committer
W. Trevor King
<wking@tremily.us>
Sun, 28 Oct 2012 23:00:32 +0000
(19:00 -0400)
libbe/util/wsgi.py
patch
|
blob
|
history
diff --git
a/libbe/util/wsgi.py
b/libbe/util/wsgi.py
index eddf36fd03ee3f826a7c9eacc82e70770c3fe5db..d90311cfe1f77c08d6d7d08c747db0f89f88a51a 100644
(file)
--- a/
libbe/util/wsgi.py
+++ b/
libbe/util/wsgi.py
@@
-60,6
+60,7
@@
except ImportError:
import libbe.util.encoding
+import libbe.util.id
import libbe.command
import libbe.command.base
import libbe.command.util
@@
-318,6
+319,9
@@
class BEExceptionApp (WSGI_Middleware):
except libbe.storage.InvalidID as e:
raise libbe.util.wsgi.HandlerError(
self.http_user_error, 'InvalidID {}'.format(e))
+ except libbe.util.id.NoIDMatches as e:
+ raise libbe.util.wsgi.HandlerError(
+ self.http_user_error, 'NoIDMatches {}'.format(e))
class UppercaseHeaderApp (WSGI_Middleware):