From cdc253d98f40f5a5e1ab3360117b568033c46bf3 Mon Sep 17 00:00:00 2001 From: DedInc Date: Sun, 3 Dec 2023 10:03:24 +0600 Subject: [PATCH] raise exception fix --- bingart/bingart.py | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bingart/bingart.py b/bingart/bingart.py index 2040ca8..cfb40b8 100644 --- a/bingart/bingart.py +++ b/bingart/bingart.py @@ -48,7 +48,7 @@ def generate_images(self, query): try: ID = r.text.split(';id=')[1].split('"')[0] except IndexError: - PromptRejectedError('Error! Your prompt has been rejected for ethical reasons.') + raise PromptRejectedError('Error! Your prompt has been rejected for ethical reasons.') IG = r.text.split('IG:"')[1].split('"')[0] diff --git a/setup.py b/setup.py index f166b69..62cc0fe 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setup( name='bingart', - version='1.0.0', + version='1.0.1', author='Maehdakvan', author_email='visitanimation@google.com', description='bingart is an unofficial 🤫 API wrapper for Bing Image Creator (based on DALL-E 3).',