mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-12-23 08:01:57 +00:00
Optimize write event responses by removing unused file content
This commit is contained in:
parent
cb88acb54f
commit
3e06f5c196
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user