Skip to content

Commit

Permalink
Make sid a str
Browse files Browse the repository at this point in the history
  • Loading branch information
dbkr committed Dec 21, 2016
1 parent ee77368 commit ea73b0a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sydent/http/servlets/emailservlet.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def render_POST(self, request):
resp = {'errcode': 'M_EMAIL_SEND_ERROR', 'error': 'Failed to send email'}

if not resp:
resp = {'success': True, 'sid': sid}
resp = {'success': True, 'sid': str(sid)}

return resp

Expand Down
2 changes: 1 addition & 1 deletion sydent/http/servlets/msisdnservlet.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def render_POST(self, request):
resp = {'errcode': 'M_UNKNOWN', 'error':'Internal Server Error'}

if not resp:
resp = {'success': True, 'sid': sid}
resp = {'success': True, 'sid': str(sid)}

return resp

Expand Down

0 comments on commit ea73b0a

Please sign in to comment.