diff --git a/flamenco_worker/commands.py b/flamenco_worker/commands.py index 7bf3beffe07eec0d5e82b216b8879d7601245d31..4baf11ae4ac012986e71fc9e8565f636ba2989e4 100644 --- a/flamenco_worker/commands.py +++ b/flamenco_worker/commands.py @@ -543,7 +543,7 @@ class AbstractSubprocessCommand(AbstractCommand, abc.ABC): async def abort(self): """Aborts the command by killing the subprocess.""" - if self.proc is None or self.proc == attr.NOTHING: + if getattr(self, 'proc', None) is None or self.proc == attr.NOTHING: self._log.debug("No process to kill. That's ok.") return