Teekeks / pyTwitchAPI

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

fix title length check failing if title=None #102

Closed Meduris closed 2 years ago

Meduris commented 2 years ago

len(None) is not defined (throws TypeError: object of type 'NoneType' has no len())

This fixes cases where the title is not provided by only validating the length if title is not None

Teekeks commented 2 years ago

good catch, thanks for the PR!