Use sys.exit() calls (#11)

* Use `sys.exit()` calls

* Format code with black and isort

Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
This commit is contained in:
deepsource-autofix[bot] 2023-01-10 20:23:53 +07:00 committed by GitHub
parent a3410caac1
commit 8ffb9121c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,3 +1,4 @@
import sys
from logging import getLogger
from os import environ
@ -26,7 +27,7 @@ try:
USER_SESSION = getConfig("USER_SESSION")
except Exception as e:
LOGGER.error(f"One or more env variables missing! Exiting now.\n{e}")
exit(1)
sys.exit(1)
COMMAND_HANDLER = environ.get("COMMAND_HANDLER", "! /").split()
SUDO = list(
{