[Xfce4-commits] [apps/xfce4-panel-profiles] 70/162: Minor error handling
noreply at xfce.org
noreply at xfce.org
Fri Jul 13 13:09:29 CEST 2018
This is an automated email from the git hooks/post-receive script.
o c h o s i 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 39712fc34983520ca0ceae3ec8cb496ec7cbff95
Author: Sean Davis <smd.seandavis at gmail.com>
Date: Sun Oct 29 10:35:59 2017 -0400
Minor error handling
---
xfpanel-switch/panelconfig.py | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/xfpanel-switch/panelconfig.py b/xfpanel-switch/panelconfig.py
index d669cda..3d985f0 100644
--- a/xfpanel-switch/panelconfig.py
+++ b/xfpanel-switch/panelconfig.py
@@ -73,8 +73,11 @@ class PanelConfig(object):
config = pc.source.extractfile('config.txt')
for line in config:
- x = line.decode('utf-8').strip().split(' ', 1)
- pc.properties[x[0]] = GLib.Variant.parse(None, x[1], None, None)
+ try:
+ x = line.decode('utf-8').strip().split(' ', 1)
+ pc.properties[x[0]] = GLib.Variant.parse(None, x[1], None, None)
+ except:
+ pass
pc.find_desktops()
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list