Handle timeouts and disconnects in switch_save_running_config() too
Change-Id: Ida782863c42d5f841e8847ac614235c180dcaead
diff --git a/drivers/CiscoCatalyst.py b/drivers/CiscoCatalyst.py
index 15b4feb..fedf865 100644
--- a/drivers/CiscoCatalyst.py
+++ b/drivers/CiscoCatalyst.py
@@ -85,7 +85,7 @@
self.connection.expect("startup-config")
self._cli("startup-config")
self.connection.expect("OK")
- except PExpectError:
+ except (PExpectError, pexpect.EOF):
# recurse on error
self._switch_connect()
self.switch_save_running_config()