Update app.py
Browse files
app.py
CHANGED
@@ -120,7 +120,7 @@ def download_file(url):
|
|
120 |
actual_size = os.path.getsize(temp_file_path)
|
121 |
if total_size != 0 and actual_size != total_size:
|
122 |
logger.error(f"Downloaded file size ({actual_size} bytes) does not match expected size ({total_size} bytes)")
|
123 |
-
raise Exception("Incomplete download")
|
124 |
|
125 |
logger.info(f"File downloaded and saved as: {temp_file_path}")
|
126 |
logger.info(f"File size: {actual_size} bytes")
|
|
|
120 |
actual_size = os.path.getsize(temp_file_path)
|
121 |
if total_size != 0 and actual_size != total_size:
|
122 |
logger.error(f"Downloaded file size ({actual_size} bytes) does not match expected size ({total_size} bytes)")
|
123 |
+
raise Exception(f"Incomplete download. Expected {total_size} bytes, got {actual_size} bytes.")
|
124 |
|
125 |
logger.info(f"File downloaded and saved as: {temp_file_path}")
|
126 |
logger.info(f"File size: {actual_size} bytes")
|