diff options
author | abc <98614666+xtekky@users.noreply.github.com> | 2023-10-16 01:47:10 +0200 |
---|---|---|
committer | abc <98614666+xtekky@users.noreply.github.com> | 2023-10-16 01:47:10 +0200 |
commit | 4a3b663ccd44735d77c372b5f629a728f0b90591 (patch) | |
tree | f76dba66613f4e074862d57621ea888cd3e741f7 /g4f/Provider/AItianhuSpace.py | |
parent | ~ | new `test_providers.py` (diff) | |
download | gpt4free-4a3b663ccd44735d77c372b5f629a728f0b90591.tar gpt4free-4a3b663ccd44735d77c372b5f629a728f0b90591.tar.gz gpt4free-4a3b663ccd44735d77c372b5f629a728f0b90591.tar.bz2 gpt4free-4a3b663ccd44735d77c372b5f629a728f0b90591.tar.lz gpt4free-4a3b663ccd44735d77c372b5f629a728f0b90591.tar.xz gpt4free-4a3b663ccd44735d77c372b5f629a728f0b90591.tar.zst gpt4free-4a3b663ccd44735d77c372b5f629a728f0b90591.zip |
Diffstat (limited to 'g4f/Provider/AItianhuSpace.py')
-rw-r--r-- | g4f/Provider/AItianhuSpace.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/g4f/Provider/AItianhuSpace.py b/g4f/Provider/AItianhuSpace.py index 7eb93d48..7811c9c8 100644 --- a/g4f/Provider/AItianhuSpace.py +++ b/g4f/Provider/AItianhuSpace.py @@ -37,6 +37,8 @@ class AItianhuSpace(AsyncGeneratorProvider): domain = f"{rand}.{domains[model]}" if not cookies: cookies = get_cookies(domain) + if not cookies: + raise RuntimeError(f"g4f.provider.{cls.__name__} requires cookies") url = f'https://{domain}' async with StreamSession( |