mirror of
https://github.com/twisterarmy/feed2twister.git
synced 2025-02-01 01:24:21 +00:00
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ŭ? :)
This commit is contained in:
parent
80f7dfc3ac
commit
1e26d9a161
@ -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…
x
Reference in New Issue
Block a user