mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-08 12:54:51 +00:00
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:
parent
a3410caac1
commit
8ffb9121c4
1 changed files with 2 additions and 1 deletions
|
|
@ -1,3 +1,4 @@
|
||||||
|
import sys
|
||||||
from logging import getLogger
|
from logging import getLogger
|
||||||
from os import environ
|
from os import environ
|
||||||
|
|
||||||
|
|
@ -26,7 +27,7 @@ try:
|
||||||
USER_SESSION = getConfig("USER_SESSION")
|
USER_SESSION = getConfig("USER_SESSION")
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
LOGGER.error(f"One or more env variables missing! Exiting now.\n{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()
|
COMMAND_HANDLER = environ.get("COMMAND_HANDLER", "! /").split()
|
||||||
SUDO = list(
|
SUDO = list(
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue