New: [rhinstaller/blivet/pulls/52 f22-branch] Catch GLib.GError in places where we catch StorageError (#1202505)

vpodzime installerbot-noreply at redhat.com
Wed Mar 18 15:19:20 UTC 2015


Previously, all errors that could have been raised from running storage actions
from blivet were inherited from the StorageError class. This no longer holds
with libblockdev being used because libblockdev raises exceptions through GI
introspection and thus as GLib.GError. In places we catch the all-covering
StorageError we should also catch GLib.GError and in some places we should only
catch GLib.GError if a libblockdev call is the only thing in the try-except
block.

**This is a temporary fix until libblockdev adds some better exception hierarchy into it's GI overrides.**
-- 
To view this pull request on github, visit https://github.com/rhinstaller/blivet/pull/52


More information about the anaconda-patches mailing list