mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 09:36:05 -08:00
lint and test fixes
This commit is contained in:
@@ -112,7 +112,11 @@ def execute_scan_on_interface(interface, timeout, args):
|
||||
mylog('verbose', [f'[{pluginName}] scan_args: ', scan_args])
|
||||
|
||||
try:
|
||||
result = subprocess.check_output(scan_args, universal_newlines=True)
|
||||
result = subprocess.check_output(
|
||||
scan_args,
|
||||
universal_newlines=True,
|
||||
timeout=timeout
|
||||
)
|
||||
except subprocess.CalledProcessError as e:
|
||||
error_type = type(e).__name__
|
||||
result = ""
|
||||
|
||||
Reference in New Issue
Block a user