bitvavo / python-bitvavo-api

Python wrapper for the Bitvavo API
https://pypi.org/project/python-bitvavo-api/
ISC License
38 stars 25 forks source link

Negative sleep time length #21

Open Verth-Elone opened 3 years ago

Verth-Elone commented 3 years ago

During the execution of calls, it's possible to run into negative sleep lengths

Exception in thread Thread-44:
Traceback (most recent call last):
  File "C:\Python39\lib\threading.py", line 954, in _bootstrap_inner
    self.run()
  File "D:\Projects\crypto\venv\lib\site-packages\python_bitvavo_api\bitvavo.py", line 109, in run
    self.waitForReset(self.timeToWait)
  File "D:\Projects\crypto\venv\lib\site-packages\python_bitvavo_api\bitvavo.py", line 99, in waitForReset
    time.sleep(waitTime)
ValueError: sleep length must be non-negative

Process finished with exit code -1