added create.py in db

This commit is contained in:
Alexey Sokolov
2022-02-11 18:45:56 +03:00
parent 0c83713a17
commit e8b2730aac
5 changed files with 41 additions and 2 deletions

View File

@@ -23,7 +23,6 @@ class ConfigError(Exception):
_teletoken = getenv('LTLNOTIFIER_TELETOKEN')
print(_teletoken[9])
# Check api token
if not _teletoken:
raise ConfigError('virtual environment LTLNOTIFIER_TELETOKEN not set.')
@@ -31,7 +30,6 @@ if len(_teletoken) != 45 or _teletoken[9] != ':' or not _teletoken[:9].isdigit()
raise ConfigError('virtual environment LTLNOTIFIER_TELETOKEN incorrect.')
_bot_owner = getenv('LTLNOTIFIER_BOT_OWNER')
print(_bot_owner)
# Check bot owner
if not _bot_owner:
raise ConfigError('virtual environment LTLNOTIFIER_BOT_OWNER not set.')