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:
@ -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)
|
||||
|
Reference in New Issue
Block a user