@staticmethod<EOL><INDENT>def _remove_non_serializable_store_entries(store: Store) -> dict:<DEDENT>
cleaned_store_data = {}<EOL>for key, value in store.items():<EOL><INDENT>if Script._is_serializable(key) and Script._is_serializable(value):<EOL><INDENT>cleaned_store_data[key] = value<EOL><DEDENT>else:<EOL><INDENT>_logger.info("<STR_LIT>"<EOL>"<STR_LIT>".format(<EOL>key, value<EOL>))<EOL><DEDENT><DEDENT>return cleaned_store_data<EOL>
Copy all serializable data into a new dict, and skip the rest.
This makes sure to keep the items during runtime, even if the user edits and saves the script.