summaryrefslogtreecommitdiff
path: root/swiftstory/Status.py
diff options
context:
space:
mode:
authorOlivier Gayot <olivier.gayot@sigexec.com>2020-05-15 00:32:45 +0200
committerOlivier Gayot <olivier.gayot@sigexec.com>2020-05-15 02:47:20 +0200
commitd01091afabaeb2665fa8773ccd37cc437230c9eb (patch)
treef9a77b343b43172beda9de61c40e2b80dc193d92 /swiftstory/Status.py
parent638af2c54513a928e6fe82bcb2932c09da6931b2 (diff)
Add cosmetic changes
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
Diffstat (limited to 'swiftstory/Status.py')
-rw-r--r--swiftstory/Status.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/swiftstory/Status.py b/swiftstory/Status.py
index 4e8c84d..fb8347b 100644
--- a/swiftstory/Status.py
+++ b/swiftstory/Status.py
@@ -1,5 +1,6 @@
import json
+
def error(msg, code=255):
return json.dumps({'type': 'response', 'content': {'status': code, 'info': msg}})