Hacker News new | ask | show | jobs
by zedshaw 5731 days ago
Thanks, that also has a bug but people who try it should know how to fix it. Basically if it bombs because you don't have json then delete the line of code as it does it correctly further down.
1 comments

  Connecting to mongrel2.org:80
  Traceback (most recent call last):
    File "client.py", line 36, in <module>
      post_msg("connect")
    File "client.py", line 28, in post_msg
      msg = '@bbs %s\x00' % (json.dumps({'type': 'msg', 
  'msg': data}))
  AttributeError: 'module' object has no attribute 'dumps'
I think it's to do with my python 2.5.