Don't break if channel not found

This commit is contained in:
Ivan Habunek 2021-03-22 07:15:37 +01:00
parent 3f143b0c84
commit c0c5cbf2a8
No known key found for this signature in database
GPG Key ID: CDBD63C43A30BB95

View File

@ -263,6 +263,10 @@ def get_channel_videos(channel_id, limit, sort, type="archive", game_ids=[], aft
})
response = gql_query(query)
if not response["data"]["user"]:
raise ConsoleError("Channel {} not found".format(channel_id))
return response["data"]["user"]["videos"]