We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fcf6cf6 commit fc0d53aCopy full SHA for fc0d53a
1 file changed
examples/client_example/client_example.py
@@ -8,6 +8,7 @@
8
import logging
9
import os
10
import shutil
11
+import traceback
12
from pathlib import Path
13
14
from tuf.api.exceptions import DownloadError, RepositoryError
@@ -75,6 +76,8 @@ def download(target: str) -> bool:
75
76
77
except (OSError, RepositoryError, DownloadError) as e:
78
print(f"Failed to download target {target}: {e}")
79
+ if logging.root.level < logging.ERROR:
80
+ traceback.print_exc()
81
return False
82
83
return True
0 commit comments