Fix telegram /daily command without arguments

This commit is contained in:
Matthias
2020-12-05 08:16:40 +01:00
parent 71e46794b4
commit 058d40a72c
2 changed files with 13 additions and 1 deletions

View File

@@ -305,7 +305,7 @@ class Telegram(RPC):
stake_cur = self._config['stake_currency']
fiat_disp_cur = self._config.get('fiat_display_currency', '')
try:
timescale = int(context.args[0]) if context.args else 0
timescale = int(context.args[0]) if context.args else 7
except (TypeError, ValueError, IndexError):
timescale = 7
try: