updated example config options + 1 little fix

This commit is contained in:
b3yond 2018-11-06 08:56:24 +01:00
parent 7a7d405072
commit 25b9108e7f
3 changed files with 3 additions and 6 deletions

View file

@ -23,7 +23,7 @@ class TelegramBot(Bot):
# return when telegram returns an error code
if update in [303, 404, 420, 500, 502]:
return reports
elif isinstance(update, int):
if isinstance(update, int):
logger.error("Unknown Telegram error code: " + str(update))
return reports
user.save_seen_tg(update.update_id)

View file

@ -10,10 +10,7 @@ port = 80
contact = "b3yond@riseup.net"
[mail]
mailserver = "smtp.riseup.net"
user = "user"
passphrase = "sup3rs3cur3"
mbox = "root"
mbox_user = "root"
[database]
db_path = "/var/ticketfrei/db.sqlite"

View file

@ -27,5 +27,5 @@ def sendmail(to, subject, city=None, body=''):
# For testing:
if __name__ == '__main__':
sendmail(config['mail']['contact'], "Test Mail",
sendmail(config['web']['contact'], "Test Mail",
body="This is a test mail.")