Skip to content

Commit

Permalink
Merge aa7489f into b23ef50
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamWill committed Dec 6, 2023
2 parents b23ef50 + aa7489f commit a1f63fc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions greenwave/policies.py
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,11 @@ def _get_sub_policies(self, policy, subject):
logging.exception('Unexpected Koji XMLRPC fault with code: %s', err.faultCode)
error = f'Koji XMLRPC fault due to: \'{err.faultString}\''
raise BadGateway(error)
except BadGateway as err:
error = err.description
if 'Failed to parse SCM URL' in error:
return [], [FailedFetchRemoteRuleYaml(subject, remote_policies_urls, error)]
raise err
except Exception:
logging.exception('Failed to retrieve policies for %r', subject)
error = 'Unexpected error while fetching remote policies'
Expand Down

0 comments on commit a1f63fc

Please sign in to comment.