mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 16:48:31 +02:00
Do not crash if subdirs found inside Day One dir (#430)
This commit is contained in:
parent
976a6faaa8
commit
cf6bc9c051
1 changed files with 2 additions and 0 deletions
|
@ -30,6 +30,8 @@ class DayOne(Journal.Journal):
|
|||
filenames = [os.path.join(self.config['journal'], "entries", f) for f in os.listdir(os.path.join(self.config['journal'], "entries"))]
|
||||
self.entries = []
|
||||
for filename in filenames:
|
||||
if os.path.isdir(filename):
|
||||
continue
|
||||
with open(filename, 'rb') as plist_entry:
|
||||
try:
|
||||
dict_entry = plistlib.readPlist(plist_entry)
|
||||
|
|
Loading…
Add table
Reference in a new issue