1
0
mirror of https://github.com/httpie/cli.git synced 2025-08-10 22:42:05 +02:00

Clean up and refactor nested JSON parsing & interpreting (#1440)

This commit is contained in:
Jakub Roztocil
2022-10-01 12:38:19 +02:00
committed by GitHub
parent a7321d8ac4
commit 0689b55e1d
13 changed files with 510 additions and 472 deletions

View File

@@ -11,7 +11,7 @@ from requests import __version__ as requests_version
from . import __version__ as httpie_version
from .cli.constants import OUT_REQ_BODY
from .cli.nested_json import HTTPieSyntaxError
from .cli.nested_json import NestedJSONSyntaxError
from .client import collect_messages
from .context import Environment, LogLevel
from .downloads import Downloader
@@ -78,7 +78,7 @@ def raw_main(
args=args,
env=env,
)
except HTTPieSyntaxError as exc:
except NestedJSONSyntaxError as exc:
env.stderr.write(str(exc) + "\n")
if include_traceback:
raise