From ea73b0a9c575dbe70646ba5b2453df655c42dd96 Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 21 Dec 2016 17:53:30 +0000 Subject: [PATCH] Make sid a str --- sydent/http/servlets/emailservlet.py | 2 +- sydent/http/servlets/msisdnservlet.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sydent/http/servlets/emailservlet.py b/sydent/http/servlets/emailservlet.py index e9f5bf9f..174df540 100644 --- a/sydent/http/servlets/emailservlet.py +++ b/sydent/http/servlets/emailservlet.py @@ -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 diff --git a/sydent/http/servlets/msisdnservlet.py b/sydent/http/servlets/msisdnservlet.py index 9f0ca403..bf943a0f 100644 --- a/sydent/http/servlets/msisdnservlet.py +++ b/sydent/http/servlets/msisdnservlet.py @@ -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