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 edaaa9e commit 2882cc0Copy full SHA for 2882cc0
src/gitingest/output_formatter.py
@@ -194,8 +194,9 @@ def _format_token_count(text: str) -> str | None:
194
except (ValueError, UnicodeEncodeError) as exc:
195
print(exc)
196
return None
197
- except (requests.exceptions.RequestException, ssl.SSLError):
198
- # If network errors, silently skip token count estimation instead of erroring out
+ except (requests.exceptions.RequestException, ssl.SSLError) as exc:
+ # If network errors, skip token count estimation instead of erroring out
199
+ print(f"Failed to download tiktoken model: {exc}")
200
201
202
for threshold, suffix in _TOKEN_THRESHOLDS:
0 commit comments