Skip to content

Commit

Permalink
fix another 500 error on no local collection
Browse files Browse the repository at this point in the history
  • Loading branch information
briantist committed Oct 9, 2023
1 parent eac159a commit beb8909
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion galactory/api/v2/collections.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def collection(namespace, collection):

if upstream_result:
if colgroup is None:
result = upstream_result
return upstream_result

Check warning on line 108 in galactory/api/v2/collections.py

View check run for this annotation

Codecov / codecov/patch

galactory/api/v2/collections.py#L108

Added line #L108 was not covered by tests
else:
try:
upstream_version = VersionInfo.parse(upstream_result['latest_version']['version'])
Expand Down
2 changes: 1 addition & 1 deletion galactory/api/v3/collections.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def collection(namespace, collection):

if upstream_result:
if colgroup is None:
result = upstream_result
return upstream_result

Check warning on line 121 in galactory/api/v3/collections.py

View check run for this annotation

Codecov / codecov/patch

galactory/api/v3/collections.py#L121

Added line #L121 was not covered by tests
else:
try:
upstream_version = VersionInfo.parse(upstream_result['highest_version']['version'])
Expand Down

0 comments on commit beb8909

Please sign in to comment.