]> git.pld-linux.org Git - packages/kernel.git/commitdiff
- trap IndexError
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 28 Jan 2008 16:37:52 +0000 (16:37 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    kernel-config.py -> 1.4

kernel-config.py

index b0b2f3aa7ffc90d6f7d9467e660ceb2fa88d9568..638d2cd2a75392e07407952c17bc08e3ff7bb8e3 100644 (file)
@@ -94,7 +94,13 @@ for l in f:
         key = i[0]
         if key != arch and key != "all": 
             continue
-        val = i[1]
+
+        try:
+            val = i[1]
+        except IndexError:
+            print "Invalid line: %s" % l.strip()
+            continue
+
         dict[symbol] = val
     if not par:
         print "Unknown line: %s" % l
This page took 0.052125 seconds and 4 git commands to generate.