From d3a1ca9f6976f420eacdf78e9ef95ded1c061209 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Tue, 1 Oct 2019 18:00:10 -0400 Subject: [PATCH] See if this fancy stack trace was stopping newrelic --- lms/djangoapps/courseware/__init__.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lms/djangoapps/courseware/__init__.py b/lms/djangoapps/courseware/__init__.py index 7437ebdbe3..215a4c11eb 100644 --- a/lms/djangoapps/courseware/__init__.py +++ b/lms/djangoapps/courseware/__init__.py @@ -1,12 +1,10 @@ #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)