mirror of
https://github.com/onionshare/onionshare.git
synced 2024-12-28 00:39:37 -05:00
Fixed "RuntimeError: dictionary changed size during iteration" exception while updating upload progress
This commit is contained in:
parent
d6ce902eb6
commit
451e07269f
@ -128,7 +128,8 @@ class Upload(QtWidgets.QWidget):
|
||||
self.common.human_readable_filesize(total_uploaded_bytes),
|
||||
estimated_time_remaining)
|
||||
|
||||
for filename in progress:
|
||||
# Using list(progress) to avoid "RuntimeError: dictionary changed size during iteration"
|
||||
for filename in list(progress):
|
||||
# Add a new file if needed
|
||||
if filename not in self.files:
|
||||
self.files[filename] = File(self.common, filename)
|
||||
|
Loading…
Reference in New Issue
Block a user