Commit 60d8f92b by Pieter Avonts

changed deprecated channel_label attribute

parent a5ee6ff1
......@@ -89,7 +89,10 @@ def unsubscribe_channels(channels, client, session, sysname, sys_id):
def base_channels(client, session, sys_id):
basechan = client.channel.software.listSystemChannels(session, sys_id)
chans = [item['channel_label'] for item in basechan]
try:
chans = [item['label'] for item in basechan]
except KeyError:
chans = [item['channel_label'] for item in basechan]
return chans
# ------------------------------------------------------- #
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment