Unable to remove font from font manager

Bug #1847052 reported by Jucker on 2019-10-07
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

Unable to remove font from font manager
Hello. I've found an error in font manager in e-book editor. When I want to remove an embedded font from e-book, I see this error message:

calibre, version 4.0.0
ПОМИЛКА: Непридатне до обробки виключення: <b>AttributeError</b>:'NoneType' object has no attribute 'value'
calibre 4.0 embedded-python: True is64bit: True
Linux-4.15.0-65-generic-x86_64-with-debian-buster-sid Linux ('64bit', 'ELF')
('Linux', '4.15.0-65-generic', '#74-Ubuntu SMP Tue Sep 17 17:06:04 UTC 2019')
Python 2.7.16
Linux: ('debian', 'buster/sid', '')
Interface language: uk
Successfully initialized third party plugins: Save To Format (0, 0, 6) && Media File Importer (1, 0, 21) && Generate Cover (1, 5, 21) && Open With (1, 5, 10) && djvumaker (1, 0, 2)
Traceback (most recent call last):
  File "site-packages/calibre/gui2/tweak_book/manage_fonts.py", line 334, in remove_fonts
  File "site-packages/calibre/ebooks/oeb/polish/fonts.py", line 135, in change_font
  File "site-packages/calibre/ebooks/oeb/polish/fonts.py", line 120, in change_font_in_sheet
  File "site-packages/calibre/ebooks/oeb/polish/fonts.py", line 94, in remove_embedded_font
AttributeError: 'NoneType' object has no attribute 'value'

Notice, what this error came appear in 4.0 version. I have been use font manager long time and everything was fine before upgrade.

OS: Linux Mint 19.2
FS: ext4

Jucker (jucker7) wrote :

Fixed in branch master. The fix will be in the next release. calibre is usually released every alternate Friday.

 status fixreleased

Changed in calibre:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Bug attachments