Skip to content
This repository has been archived by the owner on May 24, 2023. It is now read-only.

Commit

Permalink
Merge 6c3a98f into ed95959
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinBasti committed Jun 24, 2019
2 parents ed95959 + 6c3a98f commit 9c9982f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
3 changes: 1 addition & 2 deletions omps/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from werkzeug.exceptions import HTTPException
from operatorcourier.errors import (
OpCourierBadYaml,
OpCourierBadArtifact,
OpCourierBadBundle,
OpCourierQuayErrorResponse
)
Expand Down Expand Up @@ -181,7 +180,7 @@ def raise_for_courier_exception(e, new_msg=None):

if isinstance(e, OpCourierBadBundle):
raise PackageValidationError(msg, e.validation_info)
elif isinstance(e, (OpCourierBadYaml, OpCourierBadArtifact)):
elif isinstance(e, OpCourierBadYaml):
raise PackageValidationError(msg)
elif isinstance(e, OpCourierQuayErrorResponse):
if e.code == 403:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def get_project_version(version_file='omps/__init__.py'):
'koji',
'PyYAML',
'requests',
'operator-courier>=1.3.0',
'operator-courier>=2.1.1',
],
extras_require={
'test': [
Expand Down
2 changes: 0 additions & 2 deletions tests/test_quay.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
OpCourierQuayError,
OpCourierQuayCommunicationError,
OpCourierValueError,
OpCourierBadArtifact,
OpCourierBadYaml
)

Expand Down Expand Up @@ -151,7 +150,6 @@ def test_generic_courier_error(self, courier_exception,
op_courier_push_raising)

@pytest.mark.parametrize('courier_exception', [
OpCourierBadArtifact('Bad artifact.'),
OpCourierBadYaml('Bad yaml.')
])
def test_courier_invalid_files_error(self, courier_exception,
Expand Down

0 comments on commit 9c9982f

Please sign in to comment.