fix: improve error handling

This commit is contained in:
Karim shoair
2025-08-15 04:52:11 +03:00
parent ba81890daf
commit 13700e2692
2 changed files with 10 additions and 6 deletions
+4 -1
View File
@@ -207,11 +207,14 @@ class CurlParser:
try:
parsed_args, unknown = self.parser.parse_known_args(tokens)
if unknown:
log.warning(f"Ignored unknown curl arguments: {unknown}")
raise AttributeError(f"Unknown/Unsupported curl arguments: {unknown}")
except ValueError:
return None
except AttributeError:
raise
except Exception as e:
log.error(
f"An unexpected error occurred during curl arguments parsing: {e}"