diff options
Diffstat (limited to 'python/examples/console.py')
| -rw-r--r-- | python/examples/console.py | 5 | 
1 files changed, 4 insertions, 1 deletions
| diff --git a/python/examples/console.py b/python/examples/console.py index d9087c0..45ac8e4 100644 --- a/python/examples/console.py +++ b/python/examples/console.py @@ -316,7 +316,10 @@ def get_channel_array():      for channel in channels:          if "-pnpres" in channel: -            i = channels.index(channel.split("-pnpres")[0]) +            chname = channel.split("-pnpres")[0] +            if chname not in channels: +                continue +            i = channels.index(chname)              channels[i] = channels[i] + color.colorize("(P)", "blue")              channels.remove(channel)      return channels | 
