We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99bef70 commit caae270Copy full SHA for caae270
invenio_rdm_records/services/vcs/release.py
@@ -283,9 +283,17 @@ def process_release(self):
283
record = self.publish()
284
return record
285
except Exception as ex:
286
- current_app.logger.exception(
+ message = (
287
f"Error while processing VCS release {self.db_release.id}: {str(ex)}"
288
)
289
+
290
+ # A CustomVCSReleaseNoRetryError implies that the release failed due to a user error. Therefore, we should not
291
+ # log this as an exception. This error will be caught upstream by InvenioVCS.
292
+ if isinstance(ex, CustomVCSReleaseNoRetryError):
293
+ current_app.logger.info(message)
294
+ else:
295
+ current_app.logger.exception(message)
296
297
raise ex
298
299
def serialize_record(self):
0 commit comments