fix(config): return None if env var is empty or non-existent (#315)

* fix(config): return None if env var is empty or non-existent
* chore: fix pylint issues
* fix: add unit test for non-existent env vars
This commit is contained in:
2024-11-21 22:26:07 +00:00
committed by GitHub
parent 31269af218
commit f611b685b3
10 changed files with 172 additions and 82 deletions

View File

@ -1,4 +1,6 @@
#!/usr/bin/env python3
"""Main module."""
import sys
import sentry_sdk
from sentry_sdk.integrations.stdlib import StdlibIntegration
@ -43,4 +45,4 @@ if __name__ == "__main__":
bot.run()
except KeyboardInterrupt:
print("Shutting down bot...")
exit()
sys.exit(0)