Commit 293a1e24 authored by Wolfgang Rohdewald's avatar Wolfgang Rohdewald
Browse files

pylint: exception from

parent e5ac9d87
......@@ -583,11 +583,11 @@ class KConfigGroup:
"""calls readEntry and returns it as an int or raises an Exception."""
return int(self.readEntry(name, default))
except Exception:
except Exception as _:
raise Exception('cannot parse group {} in {}: {}={}'.format(
self.groupName, self.config().path, name,
self.readEntry(name, default)
)) from _
class KGlobal:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment