Pull out missing variable

This commit is contained in:
Calen Pennington
2013-02-04 11:20:43 -05:00
parent 88fc2e3756
commit 0da1467a90

View File

@@ -83,8 +83,9 @@ def replace_static_urls(text, data_directory, course_namespace=None):
log.warning("From finder: %s", url)
# Otherwise, look the file up in staticfiles_storage
else:
path = data_directory + '/' + rest
try:
url = staticfiles_storage.url(data_directory + '/' + rest)
url = staticfiles_storage.url(path)
log.warning("From staticfiles_storage: %s", url)
# And if that fails, return the path unmodified
except Exception as err: