diff options
author | Papoteur <yves.brungard_mageia@gadz.org> | 2023-03-31 08:56:06 +0200 |
---|---|---|
committer | Papoteur <yves.brungard_mageia@gadz.org> | 2023-03-31 08:56:06 +0200 |
commit | 0adc1b6a222ef4b7a3b4e062b3b4107d26eb02a9 (patch) | |
tree | ec52c90473428cd5907cb10bf8ee0edd15621594 /mageiaSync | |
parent | b034849e2f198c011a4ee95c453f06b9200098ca (diff) | |
download | MageiaSync-0adc1b6a222ef4b7a3b4e062b3b4107d26eb02a9.tar MageiaSync-0adc1b6a222ef4b7a3b4e062b3b4107d26eb02a9.tar.gz MageiaSync-0adc1b6a222ef4b7a3b4e062b3b4107d26eb02a9.tar.bz2 MageiaSync-0adc1b6a222ef4b7a3b4e062b3b4107d26eb02a9.tar.xz MageiaSync-0adc1b6a222ef4b7a3b4e062b3b4107d26eb02a9.zip |
Fix core dump
Diffstat (limited to 'mageiaSync')
-rw-r--r-- | mageiaSync/mageiaSyncExt.py | 4 |
1 files 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 |