fixed exception catches for get_node expecting KeyError to expect CoreError
This commit is contained in:
parent
0db3031b15
commit
32bfa4b2f9
8 changed files with 23 additions and 26 deletions
|
@ -1663,7 +1663,7 @@ class Session(object):
|
|||
return None
|
||||
|
||||
return control_net
|
||||
except KeyError:
|
||||
except CoreError:
|
||||
if remove:
|
||||
return None
|
||||
|
||||
|
@ -1807,7 +1807,7 @@ class Session(object):
|
|||
|
||||
try:
|
||||
control_net = self.get_control_net(net_index)
|
||||
except KeyError:
|
||||
except CoreError:
|
||||
logging.exception("error retrieving control net node")
|
||||
return
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue