mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-22 21:21:32 +00:00
Delete key instead of setting it to empty string value
This commit is contained in:
parent
3e06f5c196
commit
207f984db1
@ -71,7 +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'] = ''
|
del data['content']
|
||||||
return data
|
return data
|
||||||
|
|
||||||
def select(self, data):
|
def select(self, data):
|
||||||
|
Loading…
Reference in New Issue
Block a user