Browse Source

More useful error logging

Error itself didn't get any "better", though :(
Still can't figure out how to properly RPC "any" unicode string.
Grrr. Kial ni ne ĉiuj parolas Esperanton anstataŭ? :)
master
The Dod 10 years ago
parent
commit
1e26d9a161
  1. 4
      feed2twister.py

4
feed2twister.py

@ -36,8 +36,8 @@ def main(max_items): @@ -36,8 +36,8 @@ def main(max_items):
logging.info(u'posting {0}'.format(msg))
try:
twister.newpostmsg(USERNAME,get_next_k(twister,USERNAME),msg)
except Exception,e:
logging.error(e)
except Exception,e: # To do: find out why some unicode chars screw this and how to do this "right"
logging.error(`e`)
n_items+=1
if __name__=='__main__':

Loading…
Cancel
Save