Skip to content

Commit

Permalink
Don't assume stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
kubilus1 committed Sep 24, 2023
1 parent fee82f7 commit 51859d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoortho/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def setuplogs():
maxBytes=10485760,
backupCount=5
),
logging.StreamHandler()
logging.StreamHandler() if sys.stdout is not None else logging.NullHandler()
]
)
log = logging.getLogger(__name__)
Expand Down

0 comments on commit 51859d1

Please sign in to comment.