Skip to content

Commit f3590a7

Browse files
committed
don't raise an exception if stern isn't there, just fail quietly
1 parent 2d346ba commit f3590a7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/control.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -990,6 +990,8 @@ def logs():
990990
if not args.noTmpDirOverride:
991991
osEnv['TMPDIR'] = MalcolmTmpPath
992992

993+
cmd = []
994+
993995
if orchMode is OrchestrationFramework.DOCKER_COMPOSE:
994996
# increase COMPOSE_HTTP_TIMEOUT to be ridiculously large so docker-compose never times out the TTY doing debug output
995997
osEnv['COMPOSE_HTTP_TIMEOUT'] = '100000000'
@@ -1049,7 +1051,6 @@ def logs():
10491051
)
10501052

10511053
else:
1052-
cmd = []
10531054
raise Exception(f'{sys._getframe().f_code.co_name} does not yet support {orchMode}')
10541055

10551056
if cmd:

0 commit comments

Comments
 (0)