display invalid lib version in UI during setup #2

This commit is contained in:
tomaae 2019-12-07 22:34:07 +01:00
parent 6467673dce
commit 619871a719
4 changed files with 20 additions and 15 deletions

View file

@ -39,11 +39,11 @@ class MikrotikAPI:
# ---------------------------
def check_library(self):
if not hasattr(librouteros.exceptions, 'ConnectionClosed'):
error = "Old librouteros installed, check for possible conflicts with other integrations."
error = "Invalid librouteros library version installed, possible conflict with other software."
raise OldLibrouteros(error)
if not hasattr(librouteros.exceptions, 'ProtocolError'):
error = "Old librouteros installed, check for possible conflicts with other integrations."
error = "Invalid librouteros library version installed, possible conflict with other software."
raise OldLibrouteros(error)
# ---------------------------