Skip to content

Commit

Permalink
Avoid dangerous try/except/pass pattern on Ravel connection
Browse files Browse the repository at this point in the history
  • Loading branch information
ysard committed Nov 10, 2021
1 parent 8122ab2 commit 2a6d665
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion resources/lib/dbus_pulseaudio.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2020-present Team LibreELEC

import traceback
import log
import dbus_utils
import dbussy
import ravel
Expand Down Expand Up @@ -54,4 +56,5 @@ def call_method(bus_name, path, interface, method_name, *args, **kwargs):
conn.bus_unique_name = 'PulseAudio'
BUS = ravel.Connection(conn, False)
except Exception as e:
pass
log.log('pulseaudio module; init fail: ' + str(e), log.ERROR)
log.log(traceback.format_exc(), log.ERROR)

0 comments on commit 2a6d665

Please sign in to comment.