frostspb / aio_api_ros

Async implementation Mikrotik api (apiros)
MIT License
23 stars 7 forks source link

UnboundLocalError: local variable 'res' referenced before assignment #3

Open Vai3soh opened 4 years ago

Vai3soh commented 4 years ago

Hello. Mikrotik - 6.37.4

data = b'\x06!fatal\rnot logged in\x00' # '!done' not in data

https://github.com/frostspb/aio_api_ros/blob/master/aio_api_ros/connection.py#L178

Perhaps on older versions, something in the API has changed?