Skip to content

Commit ff21e93

Browse files
authored
Expand try block a bit to catch more exceptions. (#737)
1 parent 4b4b89e commit ff21e93

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

cwltool/main.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -458,14 +458,10 @@ def main(argsl=None, # type: List[str]
458458
fetcher_constructor,
459459
overrides,
460460
tool_file_uri)
461-
except Exception as e:
462-
_logger.error(Text(e), exc_info=args.debug)
463-
return 1
464461

465-
if args.overrides:
466-
overrides.extend(load_overrides(file_uri(os.path.abspath(args.overrides)), tool_file_uri))
462+
if args.overrides:
463+
overrides.extend(load_overrides(file_uri(os.path.abspath(args.overrides)), tool_file_uri))
467464

468-
try:
469465
document_loader, workflowobj, uri = fetch_document(uri, resolver=resolver,
470466
fetcher_constructor=fetcher_constructor)
471467

0 commit comments

Comments
 (0)