ZoneMinder / pyzm

Python API, Log, Event Server and Memory wrapper for ZoneMinder
GNU General Public License v2.0
31 stars 20 forks source link

Fix access to authenticated attribute #2

Closed drtaul closed 4 years ago

drtaul commented 4 years ago

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'.