summaryrefslogtreecommitdiff
path: root/plugins/otr.py
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/otr.py')
-rw-r--r--plugins/otr.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/otr.py b/plugins/otr.py
index b79ffcf1..90b4a855 100644
--- a/plugins/otr.py
+++ b/plugins/otr.py
@@ -255,8 +255,11 @@ class Plugin(BasePlugin):
OTR_DIR = os.path.expanduser(self.config.get('keys_dir', '') or OTR_DIR)
try:
os.makedirs(OTR_DIR)
- except FileExistsError:
- pass
+ except OSError as e:
+ if e.errno != 17:
+ self.api.information('The OTR-specific folder could not be created'
+ ' poezio will be unable to save keys and trusts', 'OTR')
+
except:
self.api.information('The OTR-specific folder could not be created'
' poezio will be unable to save keys and trusts', 'OTR')