diff --git a/common/djangoapps/pipeline_mako/templates/static_content.html b/common/djangoapps/pipeline_mako/templates/static_content.html index 1945206659..afa7fbab8e 100644 --- a/common/djangoapps/pipeline_mako/templates/static_content.html +++ b/common/djangoapps/pipeline_mako/templates/static_content.html @@ -31,7 +31,10 @@ logger = logging.getLogger(__name__) %>%def> <%def name='url(file, raw=False)'><% -url = staticfiles_storage.url(file) +try: + url = staticfiles_storage.url(file) +except: + url = file ## HTML-escaping must be handled by caller %>${url | n, decode.utf8}${"?raw" if raw else ""}%def> diff --git a/lms/templates/pdf_viewer.html b/lms/templates/pdf_viewer.html index 6c91bd20ef..5702e030f4 100644 --- a/lms/templates/pdf_viewer.html +++ b/lms/templates/pdf_viewer.html @@ -32,23 +32,23 @@ http://sourceforge.net/adobe/cmap/wiki/License/