We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 36bb427 commit 753b83dCopy full SHA for 753b83d
docklib/docklib.py
@@ -89,8 +89,8 @@ def save(self):
89
for key in self._SECTIONS:
90
try:
91
CFPreferencesSetAppValue(key, self.items[key], self._DOMAIN)
92
- except Exception:
93
- raise DockError
+ except Exception as exc:
+ raise DockError from exc
94
for key in self._MUTABLE_KEYS:
95
# Python doesn't support hyphens in attribute names, so convert
96
# to/from underscores as needed.
@@ -101,8 +101,8 @@ def save(self):
101
getattr(self, key.replace("-", "_")),
102
self._DOMAIN,
103
)
104
105
106
if not CFPreferencesAppSynchronize(self._DOMAIN):
107
raise DockError
108
0 commit comments