Merge "Use e.exc_type instead of calling str on exception" into stable/newton
This commit is contained in:
commit
41a5c1042a
|
@ -140,7 +140,7 @@ class _TrunkAPI(object):
|
|||
except resources_rpc.ResourceNotFound:
|
||||
return None
|
||||
except oslo_messaging.RemoteError as e:
|
||||
if 'CallbackNotFound' not in str(e):
|
||||
if e.exc_type != 'CallbackNotFound':
|
||||
raise
|
||||
LOG.debug("Trunk plugin disabled on server. Assuming port %s is "
|
||||
"not a trunk.", port_id)
|
||||
|
|
Loading…
Reference in New Issue