mirror of
https://github.com/dbarzin/pandora-box.git
synced 2025-07-24 15:59:42 +02:00
fix bug
This commit is contained in:
parent
edcf2979b8
commit
86cf18bb5c
6 changed files with 12 additions and 13 deletions
|
@ -716,14 +716,12 @@ def clean():
|
|||
break
|
||||
# wait for clean
|
||||
log('PRESS KEY TO CLEAN', flush=True)
|
||||
screen.getch()
|
||||
wait_mouse_click()
|
||||
|
||||
# check key is still here
|
||||
try:
|
||||
os.statvfs(mount_point)
|
||||
log(f'{str(device.get("ID_FS_LABEL"))}', flush=True)
|
||||
except Exception:
|
||||
log("Device not cleaned !", flush=True)
|
||||
logging.info('device_not_cleaned')
|
||||
return "WAIT"
|
||||
|
||||
# Remove infected files
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue