fix: creating handshakes folder if it doesn't exist on startup (fixes #227)

This commit is contained in:
Simone Margaritelli 2019-10-09 12:04:28 +02:00
parent fac4b5c460
commit d4d8c39205

View File

@ -38,6 +38,9 @@ class Agent(Client, AsyncAdvertiser, AsyncTrainer):
self._handshakes = {}
self.last_session = LastSession(self._config)
if not os.path.exists(config['bettercap']['handshakes']):
os.makedirs(config['bettercap']['handshakes'])
@staticmethod
def is_connected():
try: