diff --git a/web.py b/web.py index 38edbcf..879b5c9 100644 --- a/web.py +++ b/web.py @@ -15,7 +15,6 @@ import pytz import re import stat import subprocess -import sys import timeago from pygments import highlight @@ -88,7 +87,7 @@ def list_repositories(): if not os.path.isdir(GITOLITE_REPOSITORIES_ROOT): print('Invalid repositories path: {}'.format(GITOLITE_REPOSITORIES_ROOT)) - sys.exit() + exit(4) # This only exists for exporting the bottle app object for a WSGI server such as Gunicorn application = bottle.app()