Traceback (most recent call last):


 "/code/fast-export/hg-fast-export.py", line 719, in <module>

plugins=plugins_dict))


 "/code/fast-export/hg-fast-export.py", line 535, in hg2git

if not verify_heads(ui,repo,heads_cache,force,branchesmap):


 "/code/fast-export/hg-fast-export.py", line 494, in verify_heads

b'\n%s (repo) != %s (cache)\n' % (b, b'<None>' if sha1 is None else sha1, c)
TypeError: %b requires bytes, or an object that implements __bytes__, not 'NoneType'

Traceback (most recent call last):


 "/usr/lib/calibre/calibre/devices/kindle/driver.py", line 115, in metadata_from_path

mi = read_metadata_kfx(f)


 "/usr/lib/calibre/calibre/ebooks/metadata/kfx.py", line 270, in read_metadata_kfx

m = extract_metadata(c.decode())


 "/usr/lib/calibre/calibre/ebooks/metadata/kfx.py", line 251, in extract_metadata

for value1 in entity_value[PROP_METADATA3]:
TypeError: 'NoneType' object has no attribute '__getitem__'
