diff --git a/lib/tfw/components/source_code_event_handler.py b/lib/tfw/components/source_code_event_handler.py index c8a8ad9..91b4fb3 100644 --- a/lib/tfw/components/source_code_event_handler.py +++ b/lib/tfw/components/source_code_event_handler.py @@ -71,6 +71,7 @@ class SourceCodeEventHandler(TriggerlessEventHandler): with self.monitor.pauser: try: self.filemanager.file_contents = data['content'] except Exception: log.exception('Error writing file!') + data['content'] = '' return data def select(self, data):