[Xfce4-commits] [apps/xfce4-panel-profiles] 01/01: Fix KeyError when processing some layouts (bug #14934)

noreply at xfce.org noreply at xfce.org
Sat Jul 27 14:38:35 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 bdcaa62d1aa33003c17a747a59fbad2d458d2565
Author: Sean Davis <smd.seandavis at gmail.com>
Date:   Sat Jul 27 08:38:23 2019 -0400

    Fix KeyError when processing some layouts (bug #14934)
---
 xfce4-panel-profiles/panelconfig.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/xfce4-panel-profiles/panelconfig.py b/xfce4-panel-profiles/panelconfig.py
index 5f85f20..dd74918 100644
--- a/xfce4-panel-profiles/panelconfig.py
+++ b/xfce4-panel-profiles/panelconfig.py
@@ -154,7 +154,10 @@ class PanelConfig(object):
         for param in keys:
             for bad_plugin in rem_keys:
                 if param == bad_plugin or param.startswith(bad_plugin+'/'):
-                    del self.properties[param]
+                    try:
+                        del self.properties[param]
+                    except KeyError:
+                        pass #  https://bugzilla.xfce.org/show_bug.cgi?id=14934
 
     def get_desktop_source_file(self, desktop):
         if getattr(self, 'source', None) is None:

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


More information about the Xfce4-commits mailing list