fix: Event without hashable attribute

Related #506
pull/527/head
Raphaël Vinot 2019-12-23 21:32:17 +01:00
parent fac748dd4c
commit 85b9c92313
1 changed files with 2 additions and 1 deletions

View File

@ -68,7 +68,8 @@ if __name__ == '__main__':
if not e_feed:
print(f'Invalid distribution {e.distribution}, skipping')
continue
hashes += [[h, e.uuid] for h in e_feed.pop('_hashes')]
if '_hashes' in e_feed:
hashes += [[h, e.uuid] for h in e_feed.pop('_hashes')]
manifest.update(e_feed.pop('_manifest'))
saveEvent(e_feed)
print("Event " + str(counter) + "/" + str(total) + " exported.")