Update gitea/dev.py
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user