Skip to content

Commit

Permalink
- Fix request exception error
Browse files Browse the repository at this point in the history
  • Loading branch information
regiellis committed Aug 21, 2024
1 parent 021aeac commit b9ab9b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion civitai_models_manager/modules/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def check_api_availability() -> Dict[str, Any]:
return {"status": True, "message": "API is accessible"}
else:
return {"status": False, "message": f"API returned status code {response.status_code}"}
except httpx.RequestException as e:
except httpx.RequestError as e:
return {"status": False, "message": f"Failed to connect to API: {str(e)}"}


Expand Down

0 comments on commit b9ab9b4

Please sign in to comment.