Fix linter issues and unittests
Some checks failed
Build Docker image / build (push) Has been skipped
Build Docker image / test (push) Failing after 2m41s

This commit is contained in:
Roman Krček
2024-10-13 21:18:18 +02:00
parent 6d508121b0
commit 3075743c5d
3 changed files with 27 additions and 16 deletions

View File

@@ -12,7 +12,8 @@ def protected(func):
f"User with ID {message.from_user.id} attempted"
"to text this bot!")
log.info(
f"Only users allowed are: {' '.join(settings.allowed_ids_list)}")
"Only users allowed are:"
f"{' '.join(settings.allowed_ids_list)}")
return await message.reply_text("You are not on the list!")
return await func(client, message)
return wrapper