Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
debug
  • Loading branch information
blink1073 committed May 20, 2024
commit ed9ad5e8d261ab0544e87aec2defe30aac3ae3f3
4 changes: 2 additions & 2 deletions tools/fail_if_no_c.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@

if not pymongo.has_c() or not bson.has_c():
try:
pass # type:ignore[attr-defined] noqa: F401
from pymongo import _cmessage # type:ignore[attr-defined] # noqa: F401
except Exception as e:
print(e)
try:
pass # type:ignore[attr-defined] noqa: F401
from bson import _cbson # type:ignore[attr-defined] # noqa: F401
except Exception as e:
print(e)
sys.exit("could not load C extensions")
Expand Down