search for: pygrub_v

Displaying 1 result from an estimated 1 matches for "pygrub_v".

Did you mean: pygrub
2011 Oct 20
2
[PATCH] pygrub: do not overload RuntimeError for "no menu.lst found"
...hiding the root cause from the trace. Defining a separate exception for "no bootloader config file found" avoids this. diff --git a/tools/pygrub/src/pygrub b/tools/pygrub/src/pygrub --- a/tools/pygrub/src/pygrub +++ b/tools/pygrub/src/pygrub @@ -29,6 +29,9 @@ import grub.ExtLinuxConf PYGRUB_VER = 0.6 +class NotFoundError(RuntimeError): + pass + def enable_cursor(ison): if ison: val = 2 @@ -412,7 +412,7 @@ class Grub: self.cf.filename = f break if self.__dict__.get(''cf'', None) is None: - raise Run...