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 2565a0a commit c082cefCopy full SHA for c082cef
mbuild/utils/io.py
@@ -23,6 +23,7 @@
23
from pkg_resources import resource_filename
24
import sys
25
import textwrap
26
+import warnings
27
from unittest import SkipTest
28
29
@@ -114,8 +115,9 @@ def import_(module):
114
115
pass
116
try:
117
pybel = importlib.import_module('pybel')
- raise DeprecationWarning('openbabel 2.0 detected and will be '
118
- 'dropped in a future release. Consider upgrading to 3.x.')
+ msg = ('openbabel 2.0 detected and will be dropped in a future '
119
+ 'release. Consider upgrading to 3.x.')
120
+ warnings.warn(msg, DeprecationWarning)
121
return pybel
122
except ModuleNotFoundError:
123
0 commit comments