MCPcopy Create free account
hub / github.com/dedsec1121fk/DedSec / write

Method write

Scripts/Developer Base/Dead Man's Switch.py:132–142  ·  view source on GitHub ↗
(self, data)

Source from the content-addressed store, hash-verified

130 self.stream_name = stream_name
131
132 def write(self, data):
133 try:
134 self.original_stream.write(data)
135 except Exception:
136 pass
137 try:
138 ensure_logs_dir()
139 with RUN_LOG_FILE.open("a", encoding="utf-8", errors="replace") as f:
140 f.write(data)
141 except Exception:
142 pass
143
144 def flush(self):
145 try:

Callers 9

handle_md_to_htmlFunction · 0.45
append_logFunction · 0.45
create_websiteFunction · 0.45
edit_websiteFunction · 0.45
save_resultsFunction · 0.45
log_exceptionFunction · 0.45

Calls 1

ensure_logs_dirFunction · 0.70

Tested by

no test coverage detected