changed deprecated channel_label attribute

pull/4184/head
Pieter Avonts 11 years ago
parent a5ee6ff1e5
commit 60d8f92b3c

@ -89,6 +89,9 @@ def unsubscribe_channels(channels, client, session, sysname, sys_id):
def base_channels(client, session, sys_id):
basechan = client.channel.software.listSystemChannels(session, sys_id)
try:
chans = [item['label'] for item in basechan]
except KeyError:
chans = [item['channel_label'] for item in basechan]
return chans

Loading…
Cancel
Save