mirror of
https://github.com/ihabunek/twitch-dl
synced 2024-08-30 18:32:25 +00:00
Don't break if channel not found
This commit is contained in:
parent
3f143b0c84
commit
c0c5cbf2a8
@ -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"]
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user