diff --git a/jrnl/EncryptedJournal.py b/jrnl/EncryptedJournal.py index 6121f304..fe0716cb 100644 --- a/jrnl/EncryptedJournal.py +++ b/jrnl/EncryptedJournal.py @@ -43,8 +43,8 @@ class EncryptedJournal(Journal): dirname = os.path.dirname(filename) if not os.path.exists(filename): if not os.path.isdir(dirname): - print(f"[Directory {dirname} created]") os.mkdir(dirname) + print(f"[Directory {dirname} created]") self.create_file(filename) self.password = util.create_password(self.name) print( diff --git a/jrnl/Journal.py b/jrnl/Journal.py index 45596192..3589fbdd 100644 --- a/jrnl/Journal.py +++ b/jrnl/Journal.py @@ -77,8 +77,8 @@ class Journal: dirname = os.path.dirname(filename) if not os.path.exists(filename): if not os.path.isdir(dirname): - print(f"[Directory {dirname} created]") os.mkdir(dirname) + print(f"[Directory {dirname} created]") self.create_file(filename) print(f"[Journal '{self.name}' created at {filename}]", file=sys.stderr)