From 0f04a49ef1e27c29a757ec1ecd2f15ab5299c2bd Mon Sep 17 00:00:00 2001 From: HappyZ Date: Tue, 29 Jan 2019 12:58:25 -0600 Subject: [PATCH] add missing umount no matter what --- python_api/libDPT.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python_api/libDPT.py b/python_api/libDPT.py index 3026751..a05c908 100644 --- a/python_api/libDPT.py +++ b/python_api/libDPT.py @@ -244,6 +244,7 @@ class DPT(): if fromSD: if not self.diagnosis_mount_sd(): self.err_print("Failed to mount mass storage at {}".format(self.sd_tmp_mpt)) + self.diagnosis_umount_sd() return False if not self.diagnosis_isfile(fp): fp = "{0}/{1}".format(self.sd_tmp_mpt, fp) @@ -270,6 +271,7 @@ class DPT(): if fromSD: if not self.diagnosis_mount_sd(): self.err_print("Failed to mount mass storage at {}".format(self.sd_tmp_mpt)) + self.diagnosis_umount_sd() return False if not self.diagnosis_isfile(fp): fp = "{0}/{1}".format(self.sd_tmp_mpt, fp)