git://git.onelab.eu
/
myslice.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
better handling of exceptions when session expired
[myslice.git]
/
manifold
/
manifoldapi.py
diff --git
a/manifold/manifoldapi.py
b/manifold/manifoldapi.py
index
664bb32
..
180807b
100644
(file)
--- a/
manifold/manifoldapi.py
+++ b/
manifold/manifoldapi.py
@@
-113,6
+113,8
@@
def _execute_query(request, query, manifold_api_session_auth):
print "-"*80
result = manifold_api.forward(query.to_dict())
if result['code'] == 2:
+ # XXX only if we know it is the issue
+ del request.session['manifold']
raise Exception, 'Error running query: %r' % result
if result['code'] == 1: