Skip to content

Commit

Permalink
more intuitive error if nonexistance site in .ini specified
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Mar 25, 2018
1 parent 9bb6d65 commit e1b0e1f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions PyLivestream/__init__.py
Expand Up @@ -102,6 +102,8 @@ def osparam(self):
C = ConfigParser()
C.read(str(self.ini))

assert self.site in C,'Your site {} is not found in {}'.format(self.site,self.ini)

if sys.platform.startswith('linux'):
if 'XDG_SESSION_TYPE' in os.environ and os.environ['XDG_SESSION_TYPE'] == 'wayland':
logging.error('Wayland may only give black output with cursor. Login with X11 desktop')
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -5,7 +5,7 @@

setup(name='PyLivestream',
packages=find_packages(),
version = '1.5.0',
version = '1.5.1',
author='Michael Hirsch, Ph.D.',
url='https://github.com/scivision/PyLivestream',
description='Easy streaming using FFmpeg to YouTube Live, Periscope, Facebook Live, Twitch, ...',
Expand Down

0 comments on commit e1b0e1f

Please sign in to comment.