File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -1470,8 +1470,15 @@ def get_item_thumbnail(self, item):
14701470 return response
14711471 elif response .status_code == 204 :
14721472 return "No thumbnail available for this item"
1473+ elif response .status_code == 401 :
1474+ logging .error (f"Unauthorized access for item { item .uuid } " )
1475+ elif response .status_code == 403 :
1476+ logging .error (f"Forbidden access for item { item .uuid } " )
1477+ elif response .status_code == 404 :
1478+ logging .error (f"Item or thumbnail not found for item { item .uuid } " )
14731479 else :
1474- return None
1480+ logging .error (f"Unexpected response for item { item .uuid } : { response .status_code } " )
1481+ return None
14751482 except Exception as e :
14761483 logging .error (f"Error retrieving thumbnail for item { item .uuid } : { e } " )
14771484 return None
You can’t perform that action at this time.
0 commit comments