Exception msg

This commit is contained in:
Christof
2020-12-23 16:00:01 +01:00
parent b1fe5940fa
commit 74bcd82c3d
2 changed files with 6 additions and 4 deletions

View File

@@ -110,8 +110,9 @@ class Telegram(RPC):
invalid_keys = [b for b in chain.from_iterable(cust_keyboard)
if b not in valid_keys]
if len(invalid_keys):
err_msg = ('config.telegram.keyboard: invalid commands for '
f'custom keyboard: {invalid_keys}')
err_msg = ('config.telegram.keyboard: Invalid commands for '
f'custom Telegram keyboard: {invalid_keys}'
f'\nvalid commands are: {valid_keys}')
raise OperationalException(err_msg)
else:
self._keyboard = cust_keyboard