Browse Source

added error case to installFbResolution

* in case hwinfo somehow returns 0
master 3.7.2.10
idziubenko 4 months ago
parent
commit
fcab4a2780
  1. 2
      pym/install/variables/X11.py

2
pym/install/variables/X11.py

@ -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