Skip to content

Commit

Permalink
Prevent throwing an exception if a dataset doesn't exist (and never w…
Browse files Browse the repository at this point in the history
…ill) due to a job error. This is an alternative (and better) solution to #6337 when jobs set metadata externally.
  • Loading branch information
dpryan79 committed Jun 15, 2018
1 parent b41af6a commit 82c965f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/galaxy/jobs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1258,7 +1258,7 @@ def finish(
trynum = self.app.config.retry_job_output_collection
except (OSError, ObjectNotFound) as e:
trynum += 1
log.warning('Error accessing %s, will retry: %s', dataset.dataset.file_name, e)
log.warning('Error accessing dataset with ID %i, will retry: %s', dataset.dataset.id, e)
time.sleep(2)
if getattr(dataset, "hidden_beneath_collection_instance", None):
dataset.visible = False
Expand Down

0 comments on commit 82c965f

Please sign in to comment.