projects
/
diaspy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5e41a9
)
Status code 200 is returned by Diaspora* on a successful addition of user to aspect
author
Jason Robinson
<jaywink@basshero.org>
Sun, 30 Jun 2013 22:14:55 +0000
(
01:14
+0300)
committer
Jason Robinson
<jaywink@basshero.org>
Sun, 30 Jun 2013 22:14:55 +0000
(
01:14
+0300)
diaspy/models.py
patch
|
blob
|
blame
|
history
diff --git
a/diaspy/models.py
b/diaspy/models.py
index 3fbfd7db530dded00f2fa91096b1f02bb891e831..f314ec32be46b305b279e880294c32ca6e83aa2d 100644
(file)
--- a/
diaspy/models.py
+++ b/
diaspy/models.py
@@
-34,7
+34,7
@@
class Aspect():
raise Exception('duplicate record, user already exists in aspect: {0}'.format(request.status_code))
elif request.status_code == 404:
raise Exception('user not found from this pod: {0}'.format(request.status_code))
- elif request.status_code != 20
1
:
+ elif request.status_code != 20
0
:
raise Exception('wrong status code: {0}'.format(request.status_code))
return request.json()