[object Object]

← back to Exo

removing traceback

db610f59cc7bacdab3606e4b52dfe20e7be8b522 · 2024-11-18 14:30:22 -0800 · cadenmackenzie

Files touched

Diff

commit db610f59cc7bacdab3606e4b52dfe20e7be8b522
Author: cadenmackenzie <cadenmackenzie@gmail.com>
Date:   Mon Nov 18 14:30:22 2024 -0800

    removing traceback
---
 exo/download/hf/hf_helpers.py | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/exo/download/hf/hf_helpers.py b/exo/download/hf/hf_helpers.py
index c8e02a8d..4d2c8591 100644
--- a/exo/download/hf/hf_helpers.py
+++ b/exo/download/hf/hf_helpers.py
@@ -14,7 +14,6 @@ from exo.download.download_progress import RepoProgressEvent, RepoFileProgressEv
 from exo.inference.shard import Shard
 import aiofiles
 from aiofiles import os as aios
-import traceback
 
 T = TypeVar("T")
 
@@ -468,7 +467,5 @@ async def get_file_download_percentage(
             return (local_size / remote_size) * 100 if remote_size > 0 else 0
         
     except Exception as e:
-        if DEBUG >= 2: 
-            print(f"Error checking file download status for {file_path}: {e}")
-            traceback.print_exc()
+        if DEBUG >= 2: print(f"Error checking file download status for {file_path}: {e}")
         return 0

← 32560513 comment  ·  back to Exo  ·  removing path update 6a7de04d →