soonum / hubangl

A free/libre and easy to use streaming software.
GNU General Public License v3.0
17 stars 3 forks source link

Fix undefined variable issue #28

Closed rubenquidam closed 6 years ago

rubenquidam commented 6 years ago
Traceback (most recent call last):
  File "./hubangl", line 33, in <module>
    user_interface.main_window.MainWindow()
  File "/home/ruben/Documents/git/hubangl/user_interface/main_window.py", line 52, in __init__
    self.current_app = BaseApp(self.window, "standalone", self.images)
  File "/home/ruben/Documents/git/hubangl/user_interface/main_window.py", line 495, in __init__
    self.feed = feed.Feed(mode, images)
  File "/home/ruben/Documents/git/hubangl/user_interface/feed.py", line 56, in __init__
    self.pipeline = self.create_pipeline_instance(mode)
  File "/home/ruben/Documents/git/hubangl/user_interface/feed.py", line 108, in create_pipeline_instance
    return process.Pipeline()
  File "/home/ruben/Documents/git/hubangl/backend/process.py", line 152, in __init__
    self.audio_sources = self.create_audio_sources()
  File "/home/ruben/Documents/git/hubangl/backend/process.py", line 890, in create_audio_sources
    audio_devices = iofetch.find_audio()
  File "/home/ruben/Documents/git/hubangl/backend/iofetch.py", line 67, in find_audio
    audio_dev = parse_pactl_list(AUDIO_DEV_LIST_PATH, audio_dev)
  File "/home/ruben/Documents/git/hubangl/backend/iofetch.py", line 109, in parse_pactl_list
    output_dict.update(entry)
UnboundLocalError: local variable 'entry' referenced before assignment
soonum commented 6 years ago

I've fixed the issue. Thanks for pointing out the bug and giving a fix proposal @rubenquidam.