Skip to content

Commit

Permalink
shell: Fix .reload to discard old errors and options
Browse files Browse the repository at this point in the history
  • Loading branch information
dnicolodi committed Sep 1, 2023
1 parent 76aaf14 commit dfb6d6f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions beanquery/shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,8 @@ def do_reload(self, arg=None):
"Reload the Beancount input file."
if not self.filename:
return
self.context.errors.clear()
self.context.options.clear()
self.context.attach('beancount:' + self.filename)
table = self.context.tables['entries']
self._extract_queries(table.entries)
Expand Down

0 comments on commit dfb6d6f

Please sign in to comment.