Skip to content

Commit

Permalink
Fix import of excaptions in apicli (#284)
Browse files Browse the repository at this point in the history
- Some exceptions could not be imported so changing the import to
``librouteros.exceptions```.
- The ```ConnectionError``` is a build-in exception from Python
  • Loading branch information
luqasz authored Sep 16, 2024
2 parents b9aab30 + 0767802 commit 854e102
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apicli.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
from select import select
from os import linesep

from librouteros import connect, ConnectionError, TrapError, FatalError
from librouteros import connect
from librouteros.exceptions import TrapError, FatalError

argParser = ArgumentParser(description='mikrotik api cli interface')
argParser.add_argument(
Expand Down

0 comments on commit 854e102

Please sign in to comment.