Skip to content

Commit

Permalink
Fix MultiPartJSONParser
Browse files Browse the repository at this point in the history
  • Loading branch information
EXG1O committed May 10, 2024
1 parent aee5e0b commit d37d113
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion constructor_telegram_bots/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def parse(self, *args: Any, **kwargs: Any) -> dict[str, Any]: # type: ignore [o
parsed: DataAndFiles = super().parse(*args, **kwargs) # type: ignore [type-arg]

try:
data: dict[str, Any] = json.loads(parsed.data.pop('data'))
data: dict[str, Any] = json.loads(parsed.data['data'])
except (KeyError, JSONDecodeError):
raise ParseError()

Expand Down

0 comments on commit d37d113

Please sign in to comment.