Skip to content

Commit 5f8df3a

Browse files
committed
Catch error, bump version
1 parent a01aeb3 commit 5f8df3a

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

pytvheadend/constants.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
MAJOR_VERSION = 0
1010
MINOR_VERSION = 0
11-
SUB_MINOR_VERSION = 1
11+
SUB_MINOR_VERSION = 2
1212
__version__ = '{}.{}.{}'.format(
1313
MAJOR_VERSION, MINOR_VERSION, SUB_MINOR_VERSION)
1414

pytvheadend/tvheadend.py

+8-5
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,14 @@ async def fetch_subscription_list(self, force=False):
146146
# _LOGGER.debug('RAW: %s', slist)
147147
# _LOGGER.debug('RAW: %s', slist['entries'])
148148
for chann in slist['entries']:
149-
streams.append({
150-
'id': chann['id'],
151-
'name': chann['channel'].upper(),
152-
'network': chann['service'].split("/")[1].upper(),
153-
})
149+
try:
150+
streams.append({
151+
'id': chann['id'],
152+
'name': chann['channel'].upper(),
153+
'network': chann['service'].split("/")[1].upper(),
154+
})
155+
except KeyError as err:
156+
_LOGGER.debug('Error adding stream to list: %s', err)
154157

155158
self._active_subscriptions = streams
156159
# _LOGGER.debug(streams)

setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
setup(
1717
name='pyTVHeadend',
1818
packages=['pytvheadend'],
19-
version='0.0.1',
19+
version='0.0.2',
2020
description='Provides a python api to interact with a TVHeadend server.',
2121
author='John Mihalic',
2222
author_email='[email protected]',
2323
url='https://github.com/mezz64/pyTVHeadend',
24-
download_url='https://github.com/mezz64/pytvheadend/tarball/0.0.1',
24+
download_url='https://github.com/mezz64/pytvheadend/tarball/0.0.2',
2525
keywords=['tv', 'tvheadend', 'api wrapper', 'homeassistant'],
2626
classifiers=[],
2727
)

0 commit comments

Comments
 (0)