We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3634876 commit 10a1fd1Copy full SHA for 10a1fd1
mergin/client.py
@@ -1125,6 +1125,10 @@ def download_file_part(part):
1125
shutil.copyfileobj(chunk, final)
1126
os.remove(file_part)
1127
1128
+ if os.path.getsize(os.path.join(file_dir, basename)) != file['size']:
1129
+ os.remove(os.path.join(file_dir, basename))
1130
+ raise ClientError(f'Download of file {basename} failed. Please try it again.')
1131
+
1132
return file['path']
1133
1134
def delete_project(self, project_path):
0 commit comments