Hacker News new | past | comments | ask | show | jobs | submit login

Use http://dpaste.de/xtDj/raw/ instead of the given URL.



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.


  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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: