Strange, on artix-xfce-openrc-20220123-x86_64.iso I tried simply commenting out this line, but got the following error:
Installation Failed
Boost.Python error in job "bootloader".
Details:
<div><strong><class 'IndentationError'></strong></div><div>("expected an indented block
after 'try' statement on line 616", ('/usr/lib/calamares/modules/bootloader/main.py', 618, 5, '
except subprocess.CalledProcessError as e:\n', 618, 11))</div>
But, if I replace it by return None or something else - i.e. libcalamares.utils.debug("Do nothing") - then the installation completes successfully