Skip to content

Commit

Permalink
Remove redundant try block.
Browse files Browse the repository at this point in the history
  • Loading branch information
hjoliver authored and MetRonnie committed Feb 1, 2024
1 parent 3013d21 commit 70d6487
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cylc/flow/subprocpool.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,7 @@ def get_xtrig_func(mod_name, func_name, src_dir):

mod = get_xtrig_mod(mod_name, src_dir)

try:
_XTRIG_FUNC_CACHE[(mod_name, func_name)] = getattr(mod, func_name)
except AttributeError:
raise
_XTRIG_FUNC_CACHE[(mod_name, func_name)] = getattr(mod, func_name)

return _XTRIG_FUNC_CACHE[(mod_name, func_name)]

Expand Down

0 comments on commit 70d6487

Please sign in to comment.