mirror of
https://github.com/ihabunek/twitch-dl
synced 2024-08-30 18:32:25 +00:00
Handle channel not found in clips
This commit is contained in:
@ -153,7 +153,12 @@ def get_channel_clips(channel_id, period, limit, after=None):
|
||||
"period": period.upper(),
|
||||
})
|
||||
|
||||
|
||||
response = gql_query(query)
|
||||
user = response["data"]["user"]
|
||||
if not user:
|
||||
raise ConsoleError("Channel {} not found".format(channel_id))
|
||||
|
||||
return response["data"]["user"]["clips"]
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user