Avoid crash for devices with bad volume names

This commit is contained in:
2Shirt 2022-11-16 22:41:16 -08:00
parent 76e7994aaa
commit 89de2a7679
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -166,6 +166,7 @@ class BlockPair():
map_name += f'_{source.raw_details["label"]}'
map_name = map_name.replace(' ', '_')
map_name = map_name.replace('/', '_')
map_name = map_name.replace('\\', '_')
if destination.is_dir():
# Imaging
self.map_path = pathlib.Path(f'{destination}/Image_{map_name}.map')