From 4bc6e5983583476ebcb2dbd43e708b5a5abee78f Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@cd1c1023-2f26-0410-ae45-c471fc1f0318> Date: Wed, 27 Feb 2008 15:43:24 +0000 Subject: [PATCH] fixing another whoops git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1324 cd1c1023-2f26-0410-ae45-c471fc1f0318 --- libraries/entropy.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libraries/entropy.py b/libraries/entropy.py index 8bcba9dfb..3fb78bd50 100644 --- a/libraries/entropy.py +++ b/libraries/entropy.py @@ -6254,7 +6254,10 @@ timeout=10 grub_conf = f.readlines() f.close() content = [unicode(x,'raw_unicode_escape') for x in grub_conf] - kernel, initramfs = (unicode(kernel,'raw_unicode_escape'),unicode(initramfs,'raw_unicode_escape')) + try: + kernel, initramfs = (unicode(kernel,'raw_unicode_escape'),unicode(initramfs,'raw_unicode_escape')) + except TypeError: + pass kernelname = os.path.basename(kernel) new_conf = [] skip = False