[Xfce4-commits] [apps/xfce4-panel-profiles] 01/01: Safely handle values that GLib cannot process (bug #14597)

noreply at xfce.org noreply at xfce.org
Sat Jul 27 17:19:30 CEST 2019


This is an automated email from the git hooks/post-receive script.

b   l   u   e   s   a   b   r   e       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository apps/xfce4-panel-profiles.

commit 2d494a1b3f7c6874123c966fa9308091aaf3c14a
Author: Sean Davis <smd.seandavis at gmail.com>
Date:   Sat Jul 27 11:19:25 2019 -0400

    Safely handle values that GLib cannot process (bug #14597)
---
 xfce4-panel-profiles/panelconfig.py | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/xfce4-panel-profiles/panelconfig.py b/xfce4-panel-profiles/panelconfig.py
index dd74918..bc64c80 100644
--- a/xfce4-panel-profiles/panelconfig.py
+++ b/xfce4-panel-profiles/panelconfig.py
@@ -123,9 +123,12 @@ class PanelConfig(object):
         decoded = bytes.decode()
         if keyfile.load_from_data(decoded, len(decoded),
                                   GLib.KeyFileFlags.NONE):
-            exec_str = keyfile.get_string("Desktop Entry", "Exec")
-            if self.check_exec(exec_str):
-                return True
+            try:
+                exec_str = keyfile.get_string("Desktop Entry", "Exec")
+                if self.check_exec(exec_str):
+                    return True
+            except GLib.Error:  # pylint: disable=E0712
+                pass #  https://bugzilla.xfce.org/show_bug.cgi?id=14597
 
         return False
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list