Skip to content

Commit

Permalink
Update cylc/flow/subprocpool.py
Browse files Browse the repository at this point in the history
Co-authored-by: Ronnie Dutta <[email protected]>
  • Loading branch information
hjoliver and MetRonnie authored Oct 20, 2023
1 parent c1ab642 commit 909e9dc
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions cylc/flow/subprocpool.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,8 @@ def get_func(mod_name, func_name, src_dir):
mod_by_name = __import__(mod_name, fromlist=[mod_name])
except ImportError:
# 2. look in built-in xtriggers.
mod_name = "%s.%s" % ("cylc.flow.xtriggers", mod_name)
try:
mod_by_name = __import__(mod_name, fromlist=[mod_name])
except ImportError:
raise
mod_name = f"cylc.flow.xtriggers.{mod_name}"
mod_by_name = __import__(mod_name, fromlist=[mod_name])

# Module found and imported, return the named function.

Expand Down

0 comments on commit 909e9dc

Please sign in to comment.