We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 401d440 commit 00aee7bCopy full SHA for 00aee7b
clarity_ext/service/file_service.py
@@ -265,7 +265,13 @@ def commit(self, disable_commits):
265
if shared_file.id == artifact_id])
266
local_file = os.path.join(self.upload_queue_path, artifact_id, file_name)
267
self.logger.info("Uploading file {}".format(local_file))
268
- self.session.api.upload_new_file(artifact.api_resource, local_file)
+ try:
269
+ self.session.api.upload_new_file(artifact.api_resource, local_file)
270
+ except requests.HTTPError as e:
271
+ if "UNDER_REVIEW" in str(e):
272
+ self.logger.error("Not able to upload step log as some of the samples are in review")
273
+ else:
274
+ raise e
275
276
def _split_file_name(self, name):
277
m = re.match(self.SERVER_FILE_NAME_PATTERN, name)
0 commit comments