diff --git a/lib/tfw/mixins/supervisor_mixin.py b/lib/tfw/mixins/supervisor_mixin.py index d005527..713f0da 100644 --- a/lib/tfw/mixins/supervisor_mixin.py +++ b/lib/tfw/mixins/supervisor_mixin.py @@ -45,8 +45,6 @@ class SupervisorLogMixin(SupervisorBaseMixin): def clear_logs(self, process_name): for logfile in ('stdout_logfile', 'stderr_logfile'): - try: + with suppress(FileNotFoundError): remove(self.supervisor.getProcessInfo(process_name)[logfile]) - except FileNotFoundError: - pass self.supervisor.clearProcessLogs(process_name)