From 1a6f48614e095c43c8b7bf6ceff5879d39d3d1cf Mon Sep 17 00:00:00 2001 From: Kekoa Kaaikala Date: Wed, 21 Sep 2022 18:24:47 +0000 Subject: [PATCH] Island: Fix mypy issues in mongo_db_process.py --- monkey/monkey_island/cc/setup/mongo/mongo_db_process.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monkey/monkey_island/cc/setup/mongo/mongo_db_process.py b/monkey/monkey_island/cc/setup/mongo/mongo_db_process.py index db3f5c0ca..3da2697ea 100644 --- a/monkey/monkey_island/cc/setup/mongo/mongo_db_process.py +++ b/monkey/monkey_island/cc/setup/mongo/mongo_db_process.py @@ -49,7 +49,7 @@ class MongoDbProcess: self._process.kill() def is_running(self) -> bool: - if self._process.poll() is None: + if self._process and self._process.poll() is None: return True return False