We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30ca16a commit c3137ddCopy full SHA for c3137dd
wordpress/auth.py
@@ -612,6 +612,9 @@ def store_access_creds(self):
612
if self.access_token_secret:
613
creds['access_token_secret'] = self.access_token_secret
614
if creds:
615
+ dirname = os.path.dirname(self.creds_store)
616
+ if not os.path.exists(dirname):
617
+ os.mkdir(dirname)
618
with open(self.creds_store, 'w+') as creds_store_file:
619
StrUtils.to_binary(
620
json.dump(creds, creds_store_file, ensure_ascii=False))
0 commit comments