projects
/
astakos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d2e553
)
Handle AttributeError in case of other than GET or POST method
author
Sofia Papagiannaki
<papagian@gmail.com>
Fri, 12 Oct 2012 15:39:06 +0000
(18:39 +0300)
committer
Sofia Papagiannaki
<papagian@gmail.com>
Fri, 12 Oct 2012 15:39:06 +0000
(18:39 +0300)
snf-astakos-app/astakos/im/util.py
patch
|
blob
|
history
diff --git
a/snf-astakos-app/astakos/im/util.py
b/snf-astakos-app/astakos/im/util.py
index
4aea9c2
..
926ec3c
100644
(file)
--- a/
snf-astakos-app/astakos/im/util.py
+++ b/
snf-astakos-app/astakos/im/util.py
@@
-163,4
+163,7
@@
def reserved_email(email):
return AstakosUser.objects.filter(email = email).count() != 0
def get_query(request):
- return request.__getattribute__(request.method)
\ No newline at end of file
+ try:
+ return request.__getattribute__(request.method)
+ except AttributeError:
+ return {}
\ No newline at end of file