Commits

Michał Górny committed 767b456

Fix kernel lookup logic.

  • Participants
  • Parent commits dd1441d

Comments (0)

Files changed (1)

ecleankernel/process.py

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