Commits

Michał Górny committed fd63721

Revert "Fix kernel lookup logic."

Comments (0)

Files changed (1)

ecleankernel/process.py

 				if bootloader in ('auto', bl):
 					if debug:
 						print('** Trying bootloader %s' % bl)
-					used = getfunc(debug = debug)
-					lastbl = bl
-					if used:
-						print('*** Bootloader returned kernels')
+					try:
+						used = getfunc(debug = debug)
+					except Exception:
+						pass
+					else:
+						lastbl = bl
 						break
 
 			realpaths = [os.path.realpath(x) for x in used]