Commit 642e983
committed
defensive guard for dict instances
reaction to:
| File "/galaxy/lib/galaxy/managers/histories.py", line 685, in get_record_metadata
| export_metadata = ExportObjectMetadata.parse_raw(json_metadata) if json_metadata else None
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| File "/galaxy/.venv/lib/python3.12/site-packages/pydantic/main.py", line 1388, in parse_raw
| raise pydantic_core.ValidationError.from_exception_data(cls.__name__, [error])
| pydantic_core._pydantic_core.ValidationError: 1 validation error for ExportObjectMetadata
| __root__
| the JSON object must be str, bytes or bytearray, not dict [type=type_error, input_value={'request_data': {'object...41/150mb9.rocrate.zip'}}, input_type=dict]1 parent 3e86390 commit 642e983
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
680 | 680 | | |
681 | 681 | | |
682 | 682 | | |
683 | | - | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
684 | 689 | | |
685 | 690 | | |
686 | 691 | | |
| |||
0 commit comments