From: Luke Kenneth Casson Leighton Date: Wed, 13 Jun 2018 11:31:37 +0000 (+0100) Subject: skip blank-string entries X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=47c258030c6c182ac3797d93e09cb42853c635cb;p=pinmux.git skip blank-string entries --- diff --git a/src/bsv/actual_pinmux.py b/src/bsv/actual_pinmux.py index 356adb6..65473e0 100644 --- a/src/bsv/actual_pinmux.py +++ b/src/bsv/actual_pinmux.py @@ -61,6 +61,8 @@ def init(p, ifaces): # user-to-user. Plus this also reduces human-error as well :) for i in range(0, len(cell) - 1): cname = cell[i + 1] + if not cname: # skip blank entries, no need to test + continue temp = transfn(cname) x = ifaces.getifacetype(temp) #print (cname, temp, x)