Skip to content
This repository has been archived by the owner on Feb 10, 2018. It is now read-only.

don't leak eznc connect exceptions #53

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions napalm_junos/junos.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
from jnpr.junos.utils.config import Config
from jnpr.junos.exception import ConfigLoadError
from jnpr.junos.exception import RpcTimeoutError
from jnpr.junos.exception import ConnectTimeoutError
from jnpr.junos.exception import ConnectError

# import NAPALM Base
import napalm_base.helpers
Expand Down Expand Up @@ -72,7 +72,7 @@ def open(self):
"""Open the connection wit the device."""
try:
self.device.open()
except ConnectTimeoutError as cte:
except ConnectError as cte:
raise ConnectionException(cte.message)
self.device.timeout = self.timeout
if hasattr(self.device, "cu"):
Expand Down