That doesn't make sense, the error is TypeError: 'NoneType' object is not callable
which implies that raw.startswith is None not that raw is None. If raw were None, the error would be
AttributeError: 'NoneType' object has no attribute 'startswith'
Doing a grep of startswith.*= on the calibre source code yield no place where startswith is ever assigned to, so there is no code that could be setting startswith to None.
|