From bce4d2a43fa5139291c2893293ff768547b10e3b Mon Sep 17 00:00:00 2001 From: David Newswanger Date: Fri, 16 Sep 2022 10:30:36 -0600 Subject: [PATCH] Fix 500s on the certified repository when syncing signed collections. (#1452) Issue: AAH-1932 --- CHANGES/1932.bugfix | 1 + galaxy_ng/app/api/ui/serializers/collection.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 CHANGES/1932.bugfix diff --git a/CHANGES/1932.bugfix b/CHANGES/1932.bugfix new file mode 100644 index 0000000000..20df8f286b --- /dev/null +++ b/CHANGES/1932.bugfix @@ -0,0 +1 @@ +Fix 500s on the certified repository when syncing signed collections. \ No newline at end of file diff --git a/galaxy_ng/app/api/ui/serializers/collection.py b/galaxy_ng/app/api/ui/serializers/collection.py index 4faf1757f7..c34c0ae585 100644 --- a/galaxy_ng/app/api/ui/serializers/collection.py +++ b/galaxy_ng/app/api/ui/serializers/collection.py @@ -67,7 +67,7 @@ def get_signatures(self, obj): sig = {} sig["signature"] = bytes(signature.data).decode("utf-8") sig["pubkey_fingerprint"] = signature.pubkey_fingerprint - sig["signing_service"] = signature.signing_service.name + sig["signing_service"] = getattr(signature.signing_service, "name", None) data.append(sig) return data