[cleanup] Add more ruff rules (#10149)

Authored by: seproDev

Reviewed-by: bashonly <88596187+bashonly@users.noreply.github.com>
Reviewed-by: Simon Sawicki <contact@grub4k.xyz>
This commit is contained in:
sepro
2024-06-12 01:09:58 +02:00
committed by GitHub
parent db50f19d76
commit add96eb9f8
915 changed files with 7027 additions and 7246 deletions

View File

@@ -25,7 +25,7 @@ class TencentBaseIE(InfoExtractor):
if api_response.get('code') != '0.0' and msg is not None:
if msg in (
'您所在区域暂无此内容版权如设置VPN请关闭后重试',
'This content is not available in your area due to copyright restrictions. Please choose other videos.'
'This content is not available in your area due to copyright restrictions. Please choose other videos.',
):
self.raise_geo_restricted()
raise ExtractorError(f'Tencent said: {msg}')