ソースを参照

Update logging_util.py to fix generator subscripting error

Nick Sweeting 2 年 前
コミット
86366d5640
1 ファイル変更1 行追加1 行削除
  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 = (
             hints = (
                 '    {}{}{}'.format(ANSI['lightyellow'], line.strip(), ANSI['reset'])
                 '    {}{}{}'.format(ANSI['lightyellow'], line.strip(), ANSI['reset'])
-                for line in hints[:5] if line.strip()
+                for line in list(hints)[:5] if line.strip()
             )
             )