diff --git a/snakemake/logging.py b/snakemake/logging.py index 801929a66..ac891348f 100644 --- a/snakemake/logging.py +++ b/snakemake/logging.py @@ -506,6 +506,9 @@ def show_logs(logs): except FileNotFoundError: yield f"Logfile {f} not found." return + except UnicodeDecodeError: + yield f"Logfile {f} is not a text file." + return lines = content.splitlines() logfile_header = f"Logfile {f}:" if not lines: