Agent: Add try/except for importing pwd (can't do it on Windows)
This commit is contained in:
parent
ae856383a9
commit
9f01aa0a0d
|
@ -1,7 +1,11 @@
|
|||
import glob
|
||||
import logging
|
||||
import os
|
||||
import pwd
|
||||
|
||||
try: # can't import on Windows
|
||||
import pwd
|
||||
except ModuleNotFoundError:
|
||||
pass
|
||||
from typing import Dict, Iterable
|
||||
|
||||
from common.utils.attack_utils import ScanStatus
|
||||
|
|
Loading…
Reference in New Issue