#2 Handle tweet text >140 Chars gracefully
Opened 6 years ago by jflory7. Modified 6 years ago

Originally filed by @decause on GitHub


May 05 06:39:05 chapeauxrouge python[21461]: detected unhandled Python exception in '/home/decause/code/word_cloud/examples/wordcloudbot.py'
May 05 06:39:06 chapeauxrouge wordcloudbot.py[21461]: Working with url http://meetbot.fedoraproject.org/fudcon-planning/2015-05-05/fudcon-planning.2015-05-05-09.41.log.txt
May 05 06:39:06 chapeauxrouge wordcloudbot.py[21461]: Tweeting u'amit\'s meeting titled "FUDCon Pune Subsidy Request Review Meeting" ended in #fudcon-planning https://meetbot.fedoraproject.org/fudcon-planning/2015-05-05/fudcon-planning.2015-05-05-09.41.html #fedora'
May 05 06:39:06 chapeauxrouge wordcloudbot.py[21461]: Traceback (most recent call last):
May 05 06:39:06 chapeauxrouge wordcloudbot.py[21461]: File "/home/decause/code/word_cloud/examples/wordcloudbot.py", line 61, in 
May 05 06:39:06 chapeauxrouge wordcloudbot.py[21461]: twitter_api.update_with_media(word_cloud, content)
May 05 06:39:06 chapeauxrouge wordcloudbot.py[21461]: File "/usr/lib/python2.7/site-packages/tweepy/api.py", line 110, in update_with_media
May 05 06:39:06 chapeauxrouge wordcloudbot.py[21461]: )(self, *args, **kwargs)
May 05 06:39:06 chapeauxrouge wordcloudbot.py[21461]: File "/usr/lib/python2.7/site-packages/tweepy/binder.py", line 230, in _call
May 05 06:39:06 chapeauxrouge wordcloudbot.py[21461]: return method.execute()
May 05 06:39:06 chapeauxrouge wordcloudbot.py[21461]: File "/usr/lib/python2.7/site-packages/tweepy/binder.py", line 203, in execute
May 05 06:39:06 chapeauxrouge wordcloudbot.py[21461]: raise TweepError(error_msg, resp)
May 05 06:39:06 chapeauxrouge wordcloudbot.py[21461]: tweepy.error.TweepError: [{'message': 'Status is over 140 characters.', 'code': 186}]
May 05 06:39:06 chapeauxrouge systemd[1]: wordcloudbot.service: main process exited, code=exited, status=1/FAILURE
May 05 06:39:06 chapeauxrouge systemd[1]: Unit wordcloudbot.service entered failed state.
May 05 06:39:06 chapeauxrouge systemd[1]: wordcloudbot.service failed.

Login to comment on this ticket.

Metadata