From 0fb857c8faf7de9e868690f6af163e29de753a96 Mon Sep 17 00:00:00 2001 From: Devendra Date: Wed, 25 Jun 2014 06:39:09 +0530 Subject: [fixes #71067290 develop python] fixing error message when subscribing to -pnpres channel --- python/examples/console.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'python/examples/console.py') 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 -- cgit v1.2.3