Skip to content

Commit 1a59db5

Browse files
committed
Fix http error reporting and json metadata handling
Raise on unsuccessful HTTP responses during Bandersnatch requests so errors are reported directly instead of being misclassified as stale metadata. Also allow deserialized json list values when rendering python package metadata.
1 parent 178af6b commit 1a59db5

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fixed python syncs masking HTTP errors as stale metadata and handling native json list values in package metadata

‎pulp_python/app/utils.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ def json_to_dict(data):
462462
dictionary: of JSON string
463463
464464
"""
465-
if isinstance(data, dict):
465+
if isinstance(data, (dict, list)):
466466
return data
467467

468468
return json.loads(data)

0 commit comments

Comments
 (0)