Skip to content

Commit

Permalink
Suppressed traceback if port file exists.
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver-sanders committed Sep 7, 2016
1 parent 6e5c48e commit 256381a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/cylc/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,11 @@ def __init__(self, is_restart, options, args):

def start(self):
"""Start the server."""
self._check_port_file_does_not_exist(self.suite)
try:
self._check_port_file_does_not_exist(self.suite)
except SchedulerError:
sys.exit(1)

self._print_blurb()

GLOBAL_CFG.create_cylc_run_tree(self.suite)
Expand Down

0 comments on commit 256381a

Please sign in to comment.