Skip to content

Commit

Permalink
bugfix for empty args in dscan
Browse files Browse the repository at this point in the history
  • Loading branch information
holohup committed Aug 21, 2023
1 parent 062bf15 commit 98be184
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bot/scanner/scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,9 @@ async def _update_from_orderbooks(self, uids_to_update):
self._orderbooks.update(result)


async def dividend_scan(command, args='50'):
async def dividend_scan(command, args):
if not args:
args = '50'
return await DividendScanner(int(args)).scan_spreads()


Expand Down

0 comments on commit 98be184

Please sign in to comment.