print actual json

This commit is contained in:
Alex Grintsvayg 2016-09-08 13:40:43 -04:00
parent 54229282a4
commit cbd8a68d0f

View file

@ -46,7 +46,7 @@ def main():
r = api.call(meth, params) r = api.call(meth, params)
else: else:
r = api.call(meth) r = api.call(meth)
print r print json.dumps(r, sort_keys=True)
except: except:
print "Something went wrong, here's the usage for %s:" % meth print "Something went wrong, here's the usage for %s:" % meth
print api.help({'function': meth}) print api.help({'function': meth})