3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-01 01:09:22 +01:00

core: normalize exit codes

This commit is contained in:
James Lu 2017-02-27 07:25:46 -08:00
parent 7a1a4d9161
commit 8a773dea4e
2 changed files with 2 additions and 2 deletions

View File

@ -105,7 +105,7 @@ def loadConf(filename, errors_fatal=True, logger=None):
print(' Users upgrading from users < 0.9-alpha1 should note that the default configuration has been renamed to *pylink.yml*, not *config.yml*', file=sys.stderr) print(' Users upgrading from users < 0.9-alpha1 should note that the default configuration has been renamed to *pylink.yml*, not *config.yml*', file=sys.stderr)
if errors_fatal: if errors_fatal:
sys.exit(4) sys.exit(1)
raise raise
else: else:
return conf return conf

View File

@ -23,7 +23,7 @@ def _shutdown(irc=None):
"""Shuts down the Pylink daemon.""" """Shuts down the Pylink daemon."""
global tried_shutdown global tried_shutdown
if tried_shutdown: # We froze on shutdown last time, so immediately abort. if tried_shutdown: # We froze on shutdown last time, so immediately abort.
sys.exit() sys.exit(1)
tried_shutdown = True tried_shutdown = True