Fix the same issue with the OTR plugin
This commit is contained in:
parent
2fe84a1188
commit
65a73edc62
1 changed files with 5 additions and 2 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue