From 1e8dd73b6def69aa8533f087e22d99d3423f94b3 Mon Sep 17 00:00:00 2001 From: John Chilton Date: Tue, 16 Aug 2016 14:00:01 -0400 Subject: [PATCH] Rework small for loop per @mvdbeek's suggestion... ... see https://github.com/galaxyproject/galaxy/pull/2697#discussion_r74939815 for context. --- lib/galaxy/jobs/__init__.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/galaxy/jobs/__init__.py b/lib/galaxy/jobs/__init__.py index 648c4fd1a3d..73e3b4b6dc0 100644 --- a/lib/galaxy/jobs/__init__.py +++ b/lib/galaxy/jobs/__init__.py @@ -1299,11 +1299,9 @@ class JobWrapper( object ): else: dataset.set_peek() for context_key in ['name', 'info', 'dbkey']: - try: + if context_key in context: context_value = context[context_key] setattr(dataset, context_key, context_value) - except Exception: - pass else: dataset.blurb = "empty" if dataset.ext == 'auto':