mirror of https://github.com/CIRCL/lookyloo
chg: Avoid exception if the backend is already down
parent
11dd288bc4
commit
6db708bb93
|
@ -102,5 +102,9 @@ class AbstractManager(ABC):
|
|||
self.process.send_signal(signal.SIGTERM)
|
||||
except Exception:
|
||||
pass
|
||||
self.unset_running()
|
||||
try:
|
||||
self.unset_running()
|
||||
except Exception:
|
||||
# the services can already be down at that point.
|
||||
pass
|
||||
self.logger.info(f'Shutting down {self.__class__.__name__}')
|
||||
|
|
Loading…
Reference in New Issue