Avoid crash for devices with bad volume names
This commit is contained in:
parent
76e7994aaa
commit
89de2a7679
1 changed files with 1 additions and 0 deletions
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Reference in a new issue