mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-02 06:26:10 -04:00
Fix GUI tests
This commit is contained in:
parent
8b9d9fcf46
commit
ce7f676527
2 changed files with 7 additions and 5 deletions
|
@ -583,8 +583,11 @@ class ReceiveModeRequest(Request):
|
|||
self.web.receive_mode.uploads_in_progress.remove(history_id)
|
||||
|
||||
# If no files were written to self.receive_mode_dir, delete it
|
||||
if len(os.listdir(self.receive_mode_dir)) == 0:
|
||||
os.rmdir(self.receive_mode_dir)
|
||||
try:
|
||||
if len(os.listdir(self.receive_mode_dir)) == 0:
|
||||
os.rmdir(self.receive_mode_dir)
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
def file_write_func(self, filename, length):
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue