Fixed bug causing a string opacity to throw an exception

This commit is contained in:
Andrew Williams
2009-01-17 22:24:56 +00:00
parent 8ecbadff7e
commit 14376b0d4c

View File

@@ -155,7 +155,10 @@ class OpenboxLogout():
self.parser.read(config)
# Read config file values
self.opacity = self.parser.getint("looks", "opacity")
try:
self.opacity = self.parser.getint("looks", "opacity")
except:
self.opacity = 50
# Validate theme configuration
self.img_path = "%s/themes" % self.determine_path()