Skip to content
This repository has been archived by the owner on Dec 7, 2022. It is now read-only.

Commit

Permalink
Propagate coded exceptions raised during upload.
Browse files Browse the repository at this point in the history
re: #3090
  • Loading branch information
jortel committed Nov 1, 2017
1 parent 3dd373c commit 474781b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/pulp/server/managers/content/upload.py
Expand Up @@ -226,7 +226,9 @@ def import_uploaded_unit(repo_id, unit_type_id, unit_key, unit_metadata, upload_
repo_controller.rebuild_content_unit_counts(repo_obj)
repo_controller.update_last_unit_added(repo_obj.repo_id)
return result

except PulpCodedException:
# propagate coded exceptions.
raise
except PulpException:
msg = _('Error from the importer while importing uploaded unit to repository [%(r)s]')
msg = msg % {'r': repo_id}
Expand Down

0 comments on commit 474781b

Please sign in to comment.