Commits

Michał Górny committed 9009fc6

Fail when bootloader config exists but is not readable.

  • Participants
  • Parent commits 1d24d98

Comments (0)

Files changed (1)

File ecleankernel/process.py

 # (c) 2010 Michał Górny <mgorny@gentoo.org>
 # Released under the terms of the 2-clause BSD license.
 
-import os, os.path, re
+import errno, os, os.path, re
 
 from .grub import get_grub_kernels
 from .lilo import get_lilo_kernels
 						print('** Trying bootloader %s' % bl)
 					try:
 						used = getfunc(debug = debug)
-					except Exception:
-						pass
+					except IOError as e:
+						if e.errno != errno.ENOENT:
+							raise
 					else:
 						lastbl = bl
 						break