diff --git a/jwst/associations/lib/log_config.py b/jwst/associations/lib/log_config.py index a3c1dcdb272..a86b7a60cbc 100644 --- a/jwst/associations/lib/log_config.py +++ b/jwst/associations/lib/log_config.py @@ -155,6 +155,10 @@ def __init__(self, *args, **kwargs): def log(self, level, msg, *args, **kwargs): if self.isEnabledFor(level): + # handle `pyplot.rc('test', usetex=True)`` + if type(msg) == bytes: + msg = msg.decode() + for line in msg.split('\n'): self._log(level, line, args, **kwargs)