diff --git a/process_request/routines.py b/process_request/routines.py index c84da3d..c8694d5 100644 --- a/process_request/routines.py +++ b/process_request/routines.py @@ -20,6 +20,8 @@ class Processor(object): def strip_tags(self, user_string): """Strips XML and HTML tags from a string.""" + if user_string is None: + return None try: xmldoc = ET.fromstring(f'{user_string}') textcontent = ''.join(xmldoc.itertext())