Skip to content

Commit

Permalink
except Exception: fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
cumbof committed Jul 11, 2017
1 parent d540950 commit e516ba7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/galaxy/webapps/galaxy/controllers/async.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def index(self, trans, tool_id=None, data_secret=None, **kwd):
TOOL_OUTPUT_TYPE = obj.format
params[tool.outputs.keys()[idx]] = data.id
break
except:
except Exception:
# exclude outputs different from ToolOutput (e.g. collections) from the previous assumption
continue
if TOOL_OUTPUT_TYPE is None:
Expand Down Expand Up @@ -112,7 +112,7 @@ def index(self, trans, tool_id=None, data_secret=None, **kwd):
GALAXY_TYPE = obj.format
outputs_count += 1
break
except:
except Exception:
# exclude outputs different from ToolOutput (e.g. collections) from the previous assumption
# a collection object does not have the 'format' attribute, so it will throw an exception
continue
Expand Down

0 comments on commit e516ba7

Please sign in to comment.