AttributeError: module 'cronitor' has no attribute 'Event'
Closed this issue · 0 comments
poustchi commented
When I try to call the monitor.ok(), it throws an error
cronitor.api_key = "8...............................8"
monitor = cronitor.Monitor("SA3CXF")
monitor.ok()
File "/U.../PycharmProjects/CronitorAutomation/main.py", line 58, in <module>
monitor.ok()
File "/U...../PycharmProjects/CronitorAutomation/.venv/lib/python3.11/site-packages/cronitor/monitor.py", line 159, in ok
self.ping(state=cronitor.Event.ok)
^^^^^^^^^^^^^^
AttributeError: module 'cronitor' has no attribute 'Event'