added error case to installFbResolution

* in case hwinfo somehow returns 0
master 3.7.2.10
idziubenko 2 years ago
parent 90c9d3dfd0
commit fcab4a2780

@ -405,7 +405,7 @@ class VariableOsInstallFbResolution(ResolutionVariable):
try:
return get_best_nearest_resolution(
x11res, hwinfo.resolutions()) or self.fallback_resolution
except device.HwinfoError:
except (ZeroDivisionError, device.HwinfoError):
return self.fallback_resolution
class VariableClGrubImageHash(ReadonlyVariable):

Loading…
Cancel
Save