Skip to content

Commit

Permalink
fix: print to stderr, not stdout, from effective_date #28
Browse files Browse the repository at this point in the history
  • Loading branch information
redstreet committed Jun 12, 2024
1 parent 8867cf4 commit bcaa58c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions beancount_reds_plugins/effective_date/effective_date.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
from ast import literal_eval
import copy
import datetime
import time
import string
import random
import string
import sys
import time
from beancount.core import data
from beancount_reds_plugins.common import common

Expand Down Expand Up @@ -48,7 +49,8 @@ def build_config(config):
if config:
holding_accts = literal_eval(config)
if not holding_accts:
print("Using default config")
# print to stderr
print("Using default config", file=sys.stderr)
holding_accts = {
'Expenses': {'earlier': 'Liabilities:Hold:Expenses', 'later': 'Assets:Hold:Expenses'},
'Income': {'earlier': 'Assets:Hold:Income', 'later': 'Liabilities:Hold:Income'},
Expand Down

0 comments on commit bcaa58c

Please sign in to comment.