Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 296155 Details for
Bug 395027
[SOLVED] app-text/calibre-0.8.30 fails to retrieve news feeds
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
show debug info for "Bad image file" log message
debug.patch (text/plain), 1.56 KB, created by
Zac Medico
on 2011-12-17 18:56:59 UTC
(
hide
)
Description:
show debug info for "Bad image file" log message
Filename:
MIME Type:
Creator:
Zac Medico
Created:
2011-12-17 18:56:59 UTC
Size:
1.56 KB
patch
obsolete
>From df5c11fdb1373103ce739585c7fe824a28ce98be Mon Sep 17 00:00:00 2001 >From: Zac Medico <zmedico@gentoo.org> >Date: Sat, 17 Dec 2011 10:48:32 -0800 >Subject: [PATCH] MobiWriter.generate_images: debug rescale_image > >Instead of swallowing all exceptions from the rescale_image() function, >show a traceback. >--- > src/calibre/ebooks/mobi/writer2/main.py | 4 +++- > 1 files changed, 3 insertions(+), 1 deletions(-) > >diff --git a/src/calibre/ebooks/mobi/writer2/main.py b/src/calibre/ebooks/mobi/writer2/main.py >index 93b3987..aacb051 100644 >--- a/src/calibre/ebooks/mobi/writer2/main.py >+++ b/src/calibre/ebooks/mobi/writer2/main.py >@@ -7,7 +7,7 @@ __license__ = 'GPL v3' > __copyright__ = '2011, Kovid Goyal <kovid@kovidgoyal.net>' > __docformat__ = 'restructuredtext en' > >-import re, random, time >+import re, random, time, traceback > from cStringIO import StringIO > from struct import pack > >@@ -183,6 +183,7 @@ class MobiWriter(object): > try: > data = rescale_image(item.data) > except: >+ traceback.print_exc() > oeb.logger.warn('Bad image file %r' % item.href) > continue > else: >@@ -200,6 +201,7 @@ class MobiWriter(object): > data = rescale_image(item.data, dimen=MAX_THUMB_DIMEN, > maxsizeb=MAX_THUMB_SIZE) > except: >+ traceback.print_exc() > oeb.logger.warn('Failed to generate thumbnail') > else: > self.image_records.append(data) >-- >1.7.8 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 395027
:
296101
| 296155 |
297251