Skip to content

Commit

Permalink
fix pylint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
abbbi committed Jan 26, 2024
1 parent 51d9583 commit 375627c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libqmpbackup/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def quisce(self, qga):
reply = qga.fsfreeze("freeze")
self._log.info('"%s" Filesystem(s) freezed', reply)
return True
except Exception as errmsg:
except RuntimeError as errmsg:
self._log.warning('Unable to freeze: "%s"', errmsg)

return False
Expand All @@ -222,7 +222,7 @@ def thaw(self, qga):
reply = qga.fsfreeze("thaw")
self._log.info('"%s" filesystem(s) thawed', reply)
return True
except Exception as errmsg:
except RuntimeError as errmsg:
self._log.warning('Unable to thaw filesystem: "%s"', errmsg)

return False
Expand All @@ -232,7 +232,7 @@ def fsgetstate(self, qga):
try:
reply = qga.fsfreeze("status")
return reply
except Exception as errmsg:
except RuntimeError as errmsg:
self._log.warning("Unable to get Filesystem status: %s", errmsg)

return None

0 comments on commit 375627c

Please sign in to comment.