erdewit / ib_insync

Python sync/async framework for Interactive Brokers API
BSD 2-Clause "Simplified" License
2.81k stars 754 forks source link

TypeError: onError() takes 4 positional arguments but 5 were given #49

Closed radekwlsk closed 6 years ago

radekwlsk commented 6 years ago

Using Watchdog caused this error to show in logs.

I think that it may be related to:

  • Errors and warnings will now log the contract they apply to
  • IB error() callback signature changed to include contract
Traceback (most recent call last):
  File "(...)/venv/lib/python3.6/site-packages/ib_insync/wrapper.py", line 129, in _handleEvent
    cb(*args)
TypeError: onError() takes 4 positional arguments but 5 were given
erdewit commented 6 years ago

Thanks for the bug report, it is indeed a problem with the new error signature. This has been fixed in v0.9.4.