Skip to content

Commit

Permalink
raise exception fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DedInc committed Dec 3, 2023
1 parent 0f13e89 commit cdc253d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bingart/bingart.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name='bingart',
version='1.0.0',
version='1.0.1',
author='Maehdakvan',
author_email='[email protected]',
description='bingart is an unofficial 🤫 API wrapper for Bing Image Creator (based on DALL-E 3).',
Expand Down

0 comments on commit cdc253d

Please sign in to comment.