add missing umount no matter what
This commit is contained in:
parent
b37239caa3
commit
0f04a49ef1
|
|
@ -244,6 +244,7 @@ class DPT():
|
||||||
if fromSD:
|
if fromSD:
|
||||||
if not self.diagnosis_mount_sd():
|
if not self.diagnosis_mount_sd():
|
||||||
self.err_print("Failed to mount mass storage at {}".format(self.sd_tmp_mpt))
|
self.err_print("Failed to mount mass storage at {}".format(self.sd_tmp_mpt))
|
||||||
|
self.diagnosis_umount_sd()
|
||||||
return False
|
return False
|
||||||
if not self.diagnosis_isfile(fp):
|
if not self.diagnosis_isfile(fp):
|
||||||
fp = "{0}/{1}".format(self.sd_tmp_mpt, fp)
|
fp = "{0}/{1}".format(self.sd_tmp_mpt, fp)
|
||||||
|
|
@ -270,6 +271,7 @@ class DPT():
|
||||||
if fromSD:
|
if fromSD:
|
||||||
if not self.diagnosis_mount_sd():
|
if not self.diagnosis_mount_sd():
|
||||||
self.err_print("Failed to mount mass storage at {}".format(self.sd_tmp_mpt))
|
self.err_print("Failed to mount mass storage at {}".format(self.sd_tmp_mpt))
|
||||||
|
self.diagnosis_umount_sd()
|
||||||
return False
|
return False
|
||||||
if not self.diagnosis_isfile(fp):
|
if not self.diagnosis_isfile(fp):
|
||||||
fp = "{0}/{1}".format(self.sd_tmp_mpt, fp)
|
fp = "{0}/{1}".format(self.sd_tmp_mpt, fp)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue