diff --git a/cms/djangoapps/contentstore/utils.py b/cms/djangoapps/contentstore/utils.py index 5ec5d6c91798..abe4fc5ec3f1 100644 --- a/cms/djangoapps/contentstore/utils.py +++ b/cms/djangoapps/contentstore/utils.py @@ -734,6 +734,7 @@ def translation_language(language): def replace_script_tags(string): - string = string.replace('', '') - return string \ No newline at end of file + if type(string) == str: + string = string.replace('', '') + return string