diff --git a/gitea/dev.py b/gitea/dev.py index b15fe90..2d1938d 100644 --- a/gitea/dev.py +++ b/gitea/dev.py @@ -98,7 +98,7 @@ class Tools: "Content-Type": "application/json", } - def _format_error(self, e: httpx.HTTPStatusError) -> str: + def _format_error(self, e) -> str: """Format HTTP error with JSON message if available.""" try: error_json = e.response.json()