mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 19:54:18 +02:00
...
This commit is contained in:
parent
cdc5127fa4
commit
f208950bab
1 changed files with 2 additions and 4 deletions
|
|
@ -8,7 +8,6 @@
|
|||
import re, os, traceback, shutil
|
||||
from threading import Thread
|
||||
from operator import itemgetter
|
||||
from textwrap import TextWrapper
|
||||
|
||||
from calibre.ptempfile import TemporaryDirectory
|
||||
from calibre.ebooks.metadata.opf2 import OPF
|
||||
|
|
@ -61,11 +60,10 @@ def report(self):
|
|||
self.failed_restores]
|
||||
if failures:
|
||||
ans += 'Failed to restore the books in the following folders:\n'
|
||||
wrap = TextWrapper(initial_indent='\t\t', width=1085)
|
||||
for dirpath, tb in failures:
|
||||
ans += '\t' + dirpath + ' with error:\n'
|
||||
ans += wrap.fill(tb)
|
||||
ans += '\n'
|
||||
ans += '\n'.join('\t\t'+x for x in tb.splitlines())
|
||||
ans += '\n\n'
|
||||
|
||||
if self.conflicting_custom_cols:
|
||||
ans += '\n\n'
|
||||
|
|
|
|||
Loading…
Reference in a new issue