better error msg

This commit is contained in:
Christof 2020-12-22 12:39:27 +01:00
parent be28b42bfa
commit cd1a8e2c42
1 changed files with 2 additions and 2 deletions

View File

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