From 1b8d76bf9e2584adb89d6ad213ef942e341efc6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Wed, 4 Apr 2018 22:09:51 +0200 Subject: [PATCH] Add missing return statement --- gajim/common/multimedia_helpers.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gajim/common/multimedia_helpers.py b/gajim/common/multimedia_helpers.py index 4865211a6..cb205b2e6 100644 --- a/gajim/common/multimedia_helpers.py +++ b/gajim/common/multimedia_helpers.py @@ -38,6 +38,7 @@ class DeviceManager(object): element = Gst.ElementFactory.make(name, '%spresencetest' % name) if element is None: log.warning('could not create %spresencetest', name) + return if hasattr(element.props, 'device'): element.set_state(Gst.State.READY) devices = element.get_properties('device')