Git Product home page Git Product logo

twitegram's People

Watchers

James Cloos avatar Cameron Pelkey avatar

twitegram's Issues

Add error handling for when telegram API calls fail

Nov  3 21:18:54 theden python3[569]: Traceback (most recent call last):
Nov  3 21:18:54 theden python3[569]: File "/usr/local/lib/python3.4/dist-packages/telegram/utils/request.py", line 93, in post
Nov  3 21:18:54 theden python3[569]: result = urlopen(request).read()
Nov  3 21:18:54 theden python3[569]: File "/usr/lib/python3.4/urllib/request.py", line 153, in urlopen
Nov  3 21:18:54 theden python3[569]: return opener.open(url, data, timeout)
Nov  3 21:18:54 theden python3[569]: File "/usr/lib/python3.4/urllib/request.py", line 461, in open
Nov  3 21:18:54 theden python3[569]: response = meth(req, response)
Nov  3 21:18:54 theden python3[569]: File "/usr/lib/python3.4/urllib/request.py", line 571, in http_response
Nov  3 21:18:54 theden python3[569]: 'http', request, response, code, msg, hdrs)
Nov  3 21:18:54 theden python3[569]: File "/usr/lib/python3.4/urllib/request.py", line 499, in error
Nov  3 21:18:54 theden python3[569]: return self._call_chain(*args)
Nov  3 21:18:54 theden python3[569]: File "/usr/lib/python3.4/urllib/request.py", line 433, in _call_chain
Nov  3 21:18:54 theden python3[569]: result = func(*args)
Nov  3 21:18:54 theden python3[569]: File "/usr/lib/python3.4/urllib/request.py", line 579, in http_error_default
Nov  3 21:18:54 theden python3[569]: raise HTTPError(req.full_url, code, msg, hdrs, fp)
Nov  3 21:18:54 theden python3[569]: urllib.error.HTTPError: HTTP Error 502: Bad Gateway
Nov  3 21:18:54 theden python3[569]: During handling of the above exception, another exception occurred:
Nov  3 21:18:54 theden python3[569]: Traceback (most recent call last):
Nov  3 21:18:54 theden python3[569]: File "/usr/local/share/twitegram/main.py", line 300, in <module>
Nov  3 21:18:54 theden python3[569]: interact(bot, db)
Nov  3 21:18:54 theden python3[569]: File "/usr/local/share/twitegram/main.py", line 191, in interact
Nov  3 21:18:54 theden python3[569]: for update in bot.getUpdates(offset=LAST_UPDATE_ID, timeout=10):
Nov  3 21:18:54 theden python3[569]: File "/usr/local/lib/python3.4/dist-packages/telegram/bot.py", line 126, in decorator
Nov  3 21:18:54 theden python3[569]: result = func(self, *args, **kwargs)
Nov  3 21:18:54 theden python3[569]: File "/usr/local/lib/python3.4/dist-packages/telegram/bot.py", line 683, in getUpdates
Nov  3 21:18:54 theden python3[569]: result = request.post(url, data)
Nov  3 21:18:54 theden python3[569]: File "/usr/local/lib/python3.4/dist-packages/telegram/utils/request.py", line 98, in post
Nov  3 21:18:54 theden python3[569]: raise TelegramError('Bad Gateway')
Nov  3 21:18:54 theden python3[569]: telegram.error.TelegramError: Bad Gateway

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.