Add sectorSize property to catch and handle missing partedDevice (#1095329)

Resolves: fed#1095329

Signed-off-by: mulhern <amulhern@redhat.com>
Make dumpState catch and log all AttributeErrors (#1095329)

Related: fed#1095329

It really seems wrong for it to fail on what may just be a mistake
on the part of some dict() somewhere.

Signed-off-by: mulhern <amulhern@redhat.com>
Rearrange code related to handleUdevDeviceFormat() (#1095329)

Resolves: #1095329

Move some actions from calling code into handleUdevDeviceFormat():
* Move checks for non-existant info and media not present
into handleUdevDeviceFormat().
* Move logging obtained format into handleUdevDeviceFormat()

Move check for no device found in handleUdevDevice() earlier,
make the message a bit more informative, and omit redundant
checks for existance of device that occur after the check.

Now handleUdevDeviceFormat() will exit if media not present. Previously,
there was one caller, updateDeviceFormat(), where handleUdevDeviceFormat()
would be called regardless of whether media was present and another,
handleUdevDevice() where the call would not occur if media was not present.

Signed-off-by: mulhern <amulhern@redhat.com>