warn_connection#
- sunpy.util.warn_connection(msg, stacklevel=1)[source]#
Raise a
SunpyConnectionWarning.- Parameters:
msg (str) – Warning message.
stacklevel (int) – This is interpreted relative to the call to this function, e.g.
stacklevel=1(the default) sets the stack level in the code that calls this function.