Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Oliver Sanders <[email protected]>
  • Loading branch information
wxtim and oliver-sanders authored Jan 4, 2024
1 parent f1d559f commit 4bc51b9
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions cylc/flow/task_job_mgr.py
Original file line number Diff line number Diff line change
Expand Up @@ -1305,11 +1305,9 @@ def get_execution_time_limit(
>>> with raises(ValueError):
... this("🇳🇿")
"""
execution_time_limit = None
if config_execution_time_limit is not None:
with suppress(TypeError):
execution_time_limit = float(config_execution_time_limit)
return execution_time_limit
with suppress(TypeError):
return float(config_execution_time_limit)
return None

def get_job_conf(
self,
Expand Down

0 comments on commit 4bc51b9

Please sign in to comment.