diff options
Diffstat (limited to 'tools/pygrub/src')
-rw-r--r-- | tools/pygrub/src/GrubConf.py | 2 | ||||
-rw-r--r-- | tools/pygrub/src/LiloConf.py | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/tools/pygrub/src/GrubConf.py b/tools/pygrub/src/GrubConf.py index 55da6f6055..7d7652f945 100644 --- a/tools/pygrub/src/GrubConf.py +++ b/tools/pygrub/src/GrubConf.py @@ -219,7 +219,7 @@ class GrubConfigFile(object): try: getattr(self, self.commands['password']) return True - except KeyError, e: + except: return False def checkPassword(self, password): diff --git a/tools/pygrub/src/LiloConf.py b/tools/pygrub/src/LiloConf.py index 9d69a9446b..8f029571cf 100644 --- a/tools/pygrub/src/LiloConf.py +++ b/tools/pygrub/src/LiloConf.py @@ -138,6 +138,12 @@ class LiloConfigFile(object): if len(img) > 0: self.add_image(LiloImage(img, path)) + def hasPassword(self): + return False + + def hasPasswordAccess(self): + return True + def add_image(self, image): self.images.append(image) |