Teekeks / pyTwitchAPI

A Python 3.7 compatible implementation of the Twitch API, EventSub, PubSub and Chat
https://pytwitchapi.dev
MIT License
254 stars 38 forks source link

add a configurable timeout for API calls #198

Closed aw-was-here closed 1 year ago

aw-was-here commented 1 year ago

I have a situation where

  try:
      user = await first(twitch.get_users(logins=['user']))
  except:
        ...

Never comes back and doesn't throw an exception. Adding a default timeout or specific timeouts to certain calls would help I believe.