Skip to content

Commit

Permalink
possible fix #57
Browse files Browse the repository at this point in the history
  • Loading branch information
hzliu committed Mar 9, 2017
1 parent 9eef579 commit 6443149
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rqalpha/utils/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ def run_monthly(func, tradingday=None, time_rule=None, **kwargs):
def _verify_function(name, func):
if not callable(func):
raise patch_user_exc(ValueError('scheduler.{}: func should be callable'.format(name)))
signature = signature(func)
if len(signature.parameters) != 2:
sig = signature(func)
if len(sig.parameters) != 2:
raise patch_user_exc(TypeError(
'scheduler.{}: func should take exactly 2 arguments (context, bar_dict)'.format(name)))

Expand Down

0 comments on commit 6443149

Please sign in to comment.