Skip to content

Commit

Permalink
blabla
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubuntu committed Feb 9, 2024
1 parent 7fc6d3a commit af7c3a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/dgl/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def dgl_warning(message, category=DGLWarning, stacklevel=2):
"""DGL warning wrapper that defaults to ``DGLWarning`` instead of ``UserWarning`` category."""
# Skip warning in unit test.
if "unittest" in sys.modules.keys():
return
return None
return warnings.warn(message, category=category, stacklevel=stacklevel)


Expand Down

0 comments on commit af7c3a6

Please sign in to comment.