From a973ca05c338a1039f29ec8350b3e5949203ef66 Mon Sep 17 00:00:00 2001 From: Softer Date: Mon, 20 Apr 2026 12:56:11 +0300 Subject: [PATCH] Add explicit ISO guard to restore_console_font Matches the existing guards in _set_font and save_console_font. Behaviour was already safe implicitly via _font_backup=None, but the explicit check makes intent obvious at the call site. --- archinstall/lib/translationhandler.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/archinstall/lib/translationhandler.py b/archinstall/lib/translationhandler.py index a49a1839..4db4eaba 100644 --- a/archinstall/lib/translationhandler.py +++ b/archinstall/lib/translationhandler.py @@ -97,6 +97,9 @@ class TranslationHandler: def restore_console_font(self) -> None: """Restore console font (with unicode map) and console map from backup.""" + if not running_from_iso(): + return + if self._font_backup is None or not self._font_backup.exists(): return