better error msg
This commit is contained in:
parent
be28b42bfa
commit
cd1a8e2c42
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user