diff options
Diffstat (limited to 'jfr_playoff/logger.py')
-rw-r--r-- | jfr_playoff/logger.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/jfr_playoff/logger.py b/jfr_playoff/logger.py index 1218022..3f15c49 100644 --- a/jfr_playoff/logger.py +++ b/jfr_playoff/logger.py @@ -1,4 +1,10 @@ import logging as log +import sys + + +def log_encoding(): + # if there's no sys.stdin (e.g. console-less GUI), revert to default + return sys.stdin.encoding or 'utf8' class PlayoffLogger: |