summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2016-03-27 16:26:40 +0200
committerJon Bergli Heier <snakebite@jvnv.net>2016-03-27 16:26:40 +0200
commit9be01802af3cb0c1e933f07291907ae9aaa2acef (patch)
tree208f67b1264208b8936daf5c7bd590d027b02dfe
parent60c8386b63fe526f881120028dc46f1fd150bf72 (diff)
Fixed formatting in API 'Unknown method' message.
-rwxr-xr-xfbin.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fbin.py b/fbin.py
index fdb8187..fb037f7 100755
--- a/fbin.py
+++ b/fbin.py
@@ -562,7 +562,7 @@ class Application(object):
return error('Error fetching user data')
data['status'] = True
else:
- data['message'] = 'Unknown method "%s"'
+ data['message'] = 'Unknown method "%s"' % method
start_response('200 OK', [('Content-Type', 'application/json')])
return [json.dumps(data)]