| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 98ce7b1 commit 236a0f5
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -103,7 +103,7 @@ def _conditional_import_module(self, module_name): | |||
| 103 | 103 | try: | |
| 104 | 104 | return importlib.import_module(module_name) | |
| 105 | 105 | except ModuleNotFoundError as error: | |
| 106 | - if self._warn_on_extension_import: | ||
| 106 | + if self._warn_on_extension_import and module_name in builtin_hashes: | ||
| 107 | 107 | warnings.warn('Did a C extension fail to compile? %s' % error) | |
| 108 | 108 | return None | |
| 109 | 109 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments