mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
Explicitly convert to type to string
This commit is contained in:
parent
2554dc48e4
commit
a31de431ed
|
@ -133,7 +133,7 @@ class Telegram(RPC):
|
|||
""" Send a message to telegram channel """
|
||||
|
||||
noti = self._config['telegram'].get('notification_settings', {}
|
||||
).get(msg['type'], 'on')
|
||||
).get(str(msg['type']), 'on')
|
||||
if noti == 'off':
|
||||
logger.info(f"Notification '{msg['type']}' not sent.")
|
||||
# Notification disabled
|
||||
|
|
Loading…
Reference in New Issue
Block a user