ValueError: invalid literal for float()

Bug #1548405 reported by Igor on 2016-02-22
18
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Undecided
Unassigned

Bug Description

Calibre v2.48.0 / FreeBSD 10.2

./fb2/210183.fb2
Traceback (most recent call last):
  File "/usr/local/lib/calibre/calibre/db/cache.py", line 1252, in protected_set_field
    set_field(name, val, **kwargs)
  File "/usr/local/lib/calibre/calibre/db/cache.py", line 1232, in set_field
    self._set_field(name, {book_id:val}, do_path_update=False, allow_case_change=allow_case_change)
  File "/usr/local/lib/calibre/calibre/db/cache.py", line 1054, in set_field
    book_id_to_val_map, self.backend, allow_case_change=allow_case_change)
  File "/usr/local/lib/calibre/calibre/db/write.py", line 509, in set_books
    book_id_val_map.iteritems() if self.accept_vals(v)}
  File "/usr/local/lib/calibre/calibre/db/write.py", line 509, in <dictcomp>
    book_id_val_map.iteritems() if self.accept_vals(v)}
  File "/usr/local/lib/calibre/calibre/db/write.py", line 163, in <lambda>
    return lambda x: 1.0 if ans(x) is None else ans(x)
  File "/usr/local/lib/calibre/calibre/db/write.py", line 88, in adapt_number
    return typ(x)
ValueError: invalid literal for float(): 1999 04

Igor (arabesc) on 2016-02-22
summary: - ValueError: invalid literal for float(): 1999 04
+ ValueError: invalid literal for float()

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.

Duplicates of this bug

Other bug subscribers