Skip to content

Commit 501878d

Browse files
committed
fix(core.py): handle None return value from run() in start() function
Ensure that the start() function returns 0 when run() returns None. This change prevents potential issues where a None return value could cause unexpected behavior or errors in parts of the system that expect an integer return code.
1 parent 3b91df5 commit 501878d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tux/cli/core.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,8 @@ def start() -> int:
235235

236236
from tux.main import run
237237

238-
return run()
238+
result = run()
239+
return 0 if result is None else result
239240

240241

241242
# Ensure commands are registered when this module is imported

0 commit comments

Comments
 (0)