mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2025-12-29 17:44:50 +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 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(
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue