mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-22 21:51:32 +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:
|
with self.monitor.pauser:
|
||||||
try: self.filemanager.file_contents = data['content']
|
try: self.filemanager.file_contents = data['content']
|
||||||
except Exception: log.exception('Error writing file!')
|
except Exception: log.exception('Error writing file!')
|
||||||
|
data['content'] = ''
|
||||||
return data
|
return data
|
||||||
|
|
||||||
def select(self, data):
|
def select(self, data):
|
||||||
|
Loading…
Reference in New Issue
Block a user