Running version 0.1.5 of pyzm.
Calling version() method on ZMApi:
self.zm_api = zmAPI.ZMApi(options=self.zm_options)
version_info = self.zm_api.version()
Got a NameError exception:
File "/usr/lib/python3.8/site-packages/pyzm/api.py", line 74, in version
if not authenticated:
NameError: name 'authenticated' is not defined
Running version 0.1.5 of pyzm. Calling version() method on ZMApi: self.zm_api = zmAPI.ZMApi(options=self.zm_options) version_info = self.zm_api.version() Got a NameError exception: File "/usr/lib/python3.8/site-packages/pyzm/api.py", line 74, in version if not authenticated: NameError: name 'authenticated' is not defined
Fix could be 'if not self.authenticated'.