UnboundLocalError while creating icon theme

Bug #1643228 reported by Nicolas F. on 2016-11-19
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Undecided
Unassigned

Bug Description

While creating an icon theme, the icons are processed normally but there is an error before the opening of the window to chose where to save the theme.
Sometimes I get the following message:

calibre, version 2.72.0
ERREUR : Exception non gérée: <b>UnboundLocalError</b>:local variable '_' referenced before assignment

calibre 2.72 [64bit] embedded-python: True is64bit: True
Windows-8-6.2.9200 Windows ('64bit', 'WindowsPE')
('Windows', '8', '6.2.9200')
Python 2.7.9
Windows: ('8', '6.2.9200', '', 'Multiprocessor Free')
Successfully initialized third party plugins: Kobo Utilities (2, 4, 1) && Count Pages (1, 6, 9) && KePub Output (2, 7, 1) && KePub Metadata Reader (2, 7, 1) && EpubMerge (2, 0, 14) && KePub Metadata Writer (2, 7, 1) && Extract ISBN (1, 4, 4) && Quality Check (1, 9, 11) && Goodreads Sync (1, 9, 0) && KoboTouchExtended (2, 8, 2) && Goodreads (1, 1, 11) && KePub Input (2, 7, 3)
Traceback (most recent call last):
  File "site-packages\calibre\gui2\preferences\misc.py", line 54, in create_icon_theme
  File "site-packages\calibre\gui2\icon_theme.py", line 419, in create_theme
  File "site-packages\calibre\gui2\win_file_dialogs.py", line 267, in choose_save_file
UnboundLocalError: local variable '_' referenced before assignment

And sometimes every images is processed, then the window close but the theme isn't saved (or at least I didn't find it)
I'm on calibre 2.72 on windows 10 64bits.

Fixed in branch master. The fix will be in the next release. calibre is usually released every 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