if not version_files:
logging.critical("Error: could not find grml-version file.")
- raise
+ cleanup()
+ sys.exit(1)
flavours = []
logging.debug("version_files = %s", version_files)
device_mountpoint = device
if os.path.isdir(device):
- logging.info("Specified device is not a directory, therefore not mounting.")
+ logging.info("Specified device is a directory, therefore not mounting.")
remove_device_mountpoint = False
else:
device_mountpoint = tempfile.mkdtemp(prefix="grml2usb")