Fix pylint errors for ganesha manager

Closes-bug: #1813800
Change-Id: Id9858f9e016cef2d82d19df24947ae07eba916da
This commit is contained in:
Tom Barron 2019-01-29 08:02:19 -05:00
parent c88c2fd02f
commit f6613f9553
1 changed files with 2 additions and 2 deletions

View File

@ -481,7 +481,7 @@ class GaneshaManager(object):
else:
_mkindex_called = True
self._mkindex()
except Exception as e:
except exception.ProcessExecutionError as e:
for u in undos:
u()
if not self.ganesha_rados_store_enable and not _mkindex_called:
@ -499,7 +499,7 @@ class GaneshaManager(object):
try:
self._dbus_send_ganesha("UpdateExport", "string:" + path,
"string:EXPORT(Export_Id=%d)" % xid)
except Exception as e:
except exception.ProcessExecutionError as e:
# Revert the export update.
self._write_export(name, old_confdict)
raise exception.GaneshaCommandFailure(