From 51859d131b24e74c3e5255a65124ddfa67e46ea7 Mon Sep 17 00:00:00 2001 From: Matt Kubilus Date: Sat, 23 Sep 2023 20:05:31 -0400 Subject: [PATCH] Don't assume stdout --- autoortho/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoortho/__main__.py b/autoortho/__main__.py index 1429058b..b5b52245 100644 --- a/autoortho/__main__.py +++ b/autoortho/__main__.py @@ -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__)