I am trying to fix a python script and I get stuck at line 967 with an error:
TypeError: replace() argument 2 must be str, not None