From 11e71ae1b9ac5061fb7aa4794a6de2151029bcce Mon Sep 17 00:00:00 2001 From: baiyigali <1304646911@qq.com> Date: Thu, 20 Apr 2023 22:44:18 +0800 Subject: [PATCH] Update signal_monitor.py --- concern/signal_monitor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/concern/signal_monitor.py b/concern/signal_monitor.py index 9749e94..7293a56 100644 --- a/concern/signal_monitor.py +++ b/concern/signal_monitor.py @@ -10,8 +10,8 @@ def get_signal(self): return None if os.path.exists(self.file_path): with open(self.file_path) as f: - data = self.file.read() - os.remove(f) + data = f.read() + os.remove(self.file_path) return data else: return None