Forums

sys.excepthook handler produces a runtime error.

I'm getting this message when starting my script and don't know what to do. Is it an internal bug in pythonanywhere?

/usr/local/lib/python3.10/site-packages/trio/_core/_multierror.py:511: RuntimeWarning: You seem to already have a custom sys.excepthook handler installed. I'll skip install
ing Trio's custom handler, but this means MultiErrors will not show full tracebacks.
  warnings.warn(
Polling...
Traceback (most recent call last):
  File "/home/mybotaccount/.local/lib/python3.10/site-packages/telegram/ext/_application.py", line 422, in initialize
    await self.bot.initialize()
  File "/home/mybotaccount/.local/lib/python3.10/site-packages/telegram/ext/_extbot.py", line 278, in initialize
    await super().initialize()
  File "/home/mybotaccount/.local/lib/python3.10/site-packages/telegram/_bot.py", line 598, in initialize
    await self.get_me()
  File "/home/mybotaccount/.local/lib/python3.10/site-packages/telegram/ext/_extbot.py", line 1717, in get_me
    return await super().get_me(
  File "/home/mybotaccount/.local/lib/python3.10/site-packages/telegram/_bot.py", line 388, in decorator
    result = await func(self, *args, **kwargs)  # skipcq: PYL-E1102
  File "/home/mybotaccount/.local/lib/python3.10/site-packages/telegram/_bot.py", line 743, in get_me

etc...

Can you show the full error traceback?