mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 08:38:32 +02:00
Fixed bug where empty journal file results in None being added to Journal.entries
This commit is contained in:
parent
52ea01a039
commit
6ed607acc5
1 changed files with 2 additions and 1 deletions
3
jrnl.py
3
jrnl.py
|
@ -95,7 +95,8 @@ class Journal:
|
|||
# In this case, just append line to our body.
|
||||
current_entry.body += line
|
||||
# Append last entry
|
||||
entries.append(current_entry)
|
||||
if current_entry:
|
||||
entries.append(current_entry)
|
||||
journal_file.close()
|
||||
for entry in entries:
|
||||
entry.parse_tags()
|
||||
|
|
Loading…
Add table
Reference in a new issue