Explorar o código

Update logging_util.py to fix generator subscripting error

Nick Sweeting %!s(int64=2) %!d(string=hai) anos
pai
achega
86366d5640
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      archivebox/logging_util.py

+ 1 - 1
archivebox/logging_util.py

@@ -441,7 +441,7 @@ def log_archive_method_finished(result: "ArchiveResult"):
 
             hints = (
                 '    {}{}{}'.format(ANSI['lightyellow'], line.strip(), ANSI['reset'])
-                for line in hints[:5] if line.strip()
+                for line in list(hints)[:5] if line.strip()
             )