diff --git a/xcp/bootloader.py b/xcp/bootloader.py index e5673d6c..353cc7ff 100644 --- a/xcp/bootloader.py +++ b/xcp/bootloader.py @@ -586,11 +586,7 @@ def writeGrub2(self, dst_file = None): if text: print("\n".join(text), file=fh) - extra = ' ' - try: - extra = m.extra - except AttributeError: - pass + extra = m.extra if m.extra else ' ' print("menuentry '%s'%s{" % (m.title, extra), file=fh) try: