Skip to content
Snippets Groups Projects
Unverified Commit 0fb36bf5 authored by Ned Batchelder's avatar Ned Batchelder Committed by GitHub
Browse files

Merge pull request #21904 from edx/nedbat/revert-fancy-stacktrace

See if this fancy stack trace was stopping newrelic
parents 680f6227 d3a1ca9f
Branches
Tags
No related merge requests found
#pylint: disable=missing-docstring
from __future__ import absolute_import
import inspect
import warnings
if __name__ == 'courseware':
# pylint: disable=unicode-format-string
# Show the call stack that imported us wrong.
stack = "\n".join("%30s : %s:%d" % (t[3], t[1], t[2]) for t in inspect.stack()[:0:-1])
msg = "Importing 'lms.djangoapps.courseware' as 'courseware' is no longer supported:\n" + stack
msg = "Importing 'lms.djangoapps.courseware' as 'courseware' is no longer supported"
warnings.warn(msg, DeprecationWarning)
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment