Fix #5519 (CC Beta: opening a library on non-existent network path hangs) and add EPUB formatting demo to User Manual

This commit is contained in:
Kovid Goyal 2010-05-11 09:32:56 -06:00
parent 348b268c7b
commit 08e44361bb
3 changed files with 16 additions and 2 deletions

View File

@ -73,7 +73,7 @@ def get_library_path():
except:
error_dialog(None, _('Failed to create library'),
_('Failed to create calibre library at: %r. Aborting.')%library_path,
det_msg = traceback.print_exc(), show=True)
det_msg=traceback.format_exc(), show=True)
library_path = None
return library_path

View File

@ -533,3 +533,17 @@ The .cbc file will then contain::
|app| will automatically convert this .cbc file into a e-book with a Table of Contents pointing to each entry in comics.txt.
EPUB advanced formatting demo
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Various advanced formatting for EPUB files is demonstrated in this `demo file <http://calibre-ebook.com/downloads/demos/demo.epub>`_.
The file was created from hand coded HTML using calibre and is meant to be used as a template for your own EPUB creation efforts.
The source HTML it was created from is available `here <http://calibre-ebook.com/downloads/demos/demo.zip>`_. The settings used to create the
EPUB from the ZIP file are::
ebook-convert demo.zip .epub -vv --authors "Kovid Goyal" --language en --level1-toc '//*[@class="title"]' --disable-font-rescaling --page-breaks-before / --no-default-epub-cover
Note that because this file explores the potential of EPUB, most of the advanced formatting is not going to work on readers less capable than |app|'s builtin EPUB viewer.

View File

@ -1266,7 +1266,7 @@ class BasicNewsRecipe(Recipe):
feed = Feed()
msg = 'Failed feed: %s'%(title if title else url)
feed.populate_from_preparsed_feed(msg, [])
feed.description = unicode(err)
feed.description = repr(err)
parsed_feeds.append(feed)
self.log.exception(msg)