Update gitea/dev.py

This commit is contained in:
2026-01-14 15:32:17 +00:00
parent b3a4887b47
commit 1b101b2256

View File

@@ -98,7 +98,7 @@ class Tools:
"Content-Type": "application/json", "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.""" """Format HTTP error with JSON message if available."""
try: try:
error_json = e.response.json() error_json = e.response.json()