rene-d / netatmo

Python3 API for the Netatmo Weather Station
The Unlicense
36 stars 18 forks source link

error with test commans #2

Closed alexkey79 closed 5 years ago

alexkey79 commented 5 years ago

when try to use the test command

exit(0 if ok else 1)

NameError: name 'exit' is not defined

rene-d commented 5 years ago

If you don't have the site module automatically imported (see https://docs.python.org/3/library/constants.html) add from sys import exit at the beginning.