From 0adc1b6a222ef4b7a3b4e062b3b4107d26eb02a9 Mon Sep 17 00:00:00 2001 From: Papoteur Date: Fri, 31 Mar 2023 08:56:06 +0200 Subject: Fix core dump --- mageiaSync/mageiaSyncExt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mageiaSync/mageiaSyncExt.py b/mageiaSync/mageiaSyncExt.py index 55eac1e..610615f 100644 --- a/mageiaSync/mageiaSyncExt.py +++ b/mageiaSync/mageiaSyncExt.py @@ -126,8 +126,8 @@ class syncThread(QThread): self.lvM.emit(self.tr("No entry selected")) for iso in self.list: # Check free space - _, _, free = shutil.disk_usage(self.destination) - if free <= iso("size"): + _, _, free = shutil.disk_usage( iso['destination']) + if free <= iso["size"]: self.lvM.emit( self.tr("Space available {:.3f} Mb isn't enough ({:.3f} Mb needed)"). format(free/1024/1024, iso["size"]/1024/1024)) continue errorOccured=True -- cgit v1.2.1