nyanko7 commited on
Commit
6a9c613
1 Parent(s): afbf111

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -69,7 +69,7 @@ async def niji_api(prompt, progress=gr.Progress(), max_retries=5, backoff_factor
69
  return Image.open(BytesIO(response.content))
70
  except requests.exceptions.RequestException as e:
71
  logger.error(f"Failed to fetch image")
72
- raise
73
 
74
  def download_and_split_image(url):
75
  img = fetch_image(url)
 
69
  return Image.open(BytesIO(response.content))
70
  except requests.exceptions.RequestException as e:
71
  logger.error(f"Failed to fetch image")
72
+ return None
73
 
74
  def download_and_split_image(url):
75
  img = fetch_image(url)