diff -r f899af683bbe -r aeb0d0788869 rest.py --- a/rest.py Sat Apr 11 21:02:54 2015 +0300 +++ b/rest.py Sun Apr 19 19:45:42 2015 +0300 @@ -100,6 +100,7 @@ try: with open ('rejected_json.txt', 'w') as fp: + fp.write (str (e)) fp.write (jsonstring) Irc.broadcast ('bad json written to rejected_json.txt') except Exception as e: