Use except x as y instead of except x, y

According to https://docs.python.org/3/howto/pyporting.html the
syntax changed in Python 3.x. The new syntax is usable with
Python >= 2.6 and should be preferred to be compatible with Python3.

Change-Id: Icd4574c55c9460bd29a8adc84d527a4459eb3cf6
This commit is contained in:
Christian Berendt 2014-05-30 00:17:59 +02:00
parent 1dc5e57597
commit d8e907957c
1 changed files with 4 additions and 4 deletions

View File

@ -139,15 +139,15 @@ class Node():
self.connected = True
return True
except paramiko.BadHostKeyException, e:
except paramiko.BadHostKeyException as e:
print "Host key could not be verified: ", e
return False
except paramiko.AuthenticationException, e:
except paramiko.AuthenticationException as e:
print "Error unable to authenticate: ", e
return False
except paramiko.SSHException, e:
except paramiko.SSHException as e:
return False
except EOFError, e:
except EOFError as e:
return False
def runCommand(self, command):