Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.0
pulseaudio-equalizer
0004-do-not-crash-on-missing-preset.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0004-do-not-crash-on-missing-preset.patch of Package pulseaudio-equalizer
--- a/usr/share/pulseaudio-equalizer/pulseaudio-equalizer.py +++ b/usr/share/pulseaudio-equalizer/pulseaudio-equalizer.py @@ -181,10 +181,13 @@ class Equalizer: if os.path.isfile(presetdir1 + "/" + preset + ".preset"): f = open(presetdir1 + "/" + preset + ".preset", "r") rawdata=f.read().split("\n") - else: + f.close + elif os.path.isfile(presetdir2 + "/" + preset + ".preset"): f = open(presetdir2 + "/" + preset + ".preset", "r") rawdata=f.read().split("\n") f.close + else: + print("Can't find %s preset" % preset) ladspa_filename = str(rawdata[0]) ladspa_name = str(rawdata[1])
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor