From fcab4a278021a8fddbd93fe0ec5cfb48cc3b3236 Mon Sep 17 00:00:00 2001 From: idziubenko Date: Thu, 21 Apr 2022 13:54:24 +0300 Subject: [PATCH] added error case to installFbResolution * in case hwinfo somehow returns 0 --- pym/install/variables/X11.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pym/install/variables/X11.py b/pym/install/variables/X11.py index dbfc273..5194ee7 100644 --- a/pym/install/variables/X11.py +++ b/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):