We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0ed9a0 commit a018e97Copy full SHA for a018e97
mergin/utils.py
@@ -296,6 +296,7 @@ def bytes_to_human_size(bytes: int):
296
else:
297
return f"{round( bytes / 1024.0 / 1024.0 / 1024.0 / 1024.0, precision )} TB"
298
299
+
300
def cleanup_tmp_dir(mp, tmp_dir: tempfile.TemporaryDirectory):
301
"""
302
Remove temporary from tempfile.TemporaryDirectory instance
@@ -309,4 +310,4 @@ def cleanup_tmp_dir(mp, tmp_dir: tempfile.TemporaryDirectory):
309
310
pass # Ignore the error and continue
311
except Exception as e:
312
mp.log.error(f"Error during tmp dir cleanup: {tmp_dir.name}: {e}")
- pass # Ignore the error and continue
313
+ pass # Ignore the error and continue
0 commit comments