Changeset 2a32e538ed55…
Parent fabcf89b8242…
by
Changes to one file · Browse files at 2a32e538ed55 Showing diff from parent fabcf89b8242 Diff from another changeset...
@@ -96,7 +96,7 @@ f.write(s)
try:
f.rename()
- except WindowsError:
+ except OSError:
pass # silently ignore these errors
def _get_path(self, appname):
@@ -115,4 +115,7 @@ def _audit(self):
if os.path.exists(os.path.dirname(self._path)):
return
- os.makedirs(os.path.dirname(self._path))
+ try:
+ os.makedirs(os.path.dirname(self._path))
+ except OSError:
+ pass # silently ignore these errors
|
Loading...