1
0
Fork 0

Merge pull request #419 from yarda/rhbz2058902

gui: fixed possible traceback in the save_profile
This commit is contained in:
Jaroslav Škarvada 2022-03-16 10:19:50 +01:00 committed by GitHub
commit 5e5df9e8b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -232,7 +232,7 @@ class GuiProfileLoader(object):
ec = subprocess.call(['pkexec', sys.executable, tuned.gtk.gui_profile_saver.__file__ , json.dumps(config)])
if (ec != 0):
raise managerException.ManagerException(
'Error while saving profile file "%s"' % (config.filename))
'Error while saving profile file "%s"' % (config['filename']))
def _delete_profile(self, profile_name):
ec = subprocess.call(['pkexec', sys.executable, tuned.gtk.gui_profile_deleter.__file__ , profile_name])