Mbonea commited on
Commit
89a5dbb
·
1 Parent(s): 7abb821

Reason for failure

Browse files
Files changed (1) hide show
  1. App/Generate/database/Vercel.py +4 -2
App/Generate/database/Vercel.py CHANGED
@@ -48,13 +48,15 @@ class AsyncImageGenerator:
48
  response.raise_for_status()
49
  temp = await response.json()
50
  status = temp
51
- except:
 
52
  status["status"] = "404"
53
 
54
  while status["status"] != "succeeded":
55
  try:
56
  status = await self._fetch_image_status(image_id)
57
- except:
 
58
  pass
59
  await asyncio.sleep(3)
60
  return status
 
48
  response.raise_for_status()
49
  temp = await response.json()
50
  status = temp
51
+ except Exception as e:
52
+ print(f"Image Request failed {e}")
53
  status["status"] = "404"
54
 
55
  while status["status"] != "succeeded":
56
  try:
57
  status = await self._fetch_image_status(image_id)
58
+ except Exception as e:
59
+ print(f"Image Request failed {e}")
60
  pass
61
  await asyncio.sleep(3)
62
  return status