diff --git a/manifest.json b/manifest.json index 3912268..02b6ac7 100644 --- a/manifest.json +++ b/manifest.json @@ -57,5 +57,5 @@ } }, "short_name": "Network pres", - "version": "1.3.5" + "version": "1.3.6" } \ No newline at end of file diff --git a/pkg/presence_adapter.py b/pkg/presence_adapter.py index d16f2a5..c335833 100644 --- a/pkg/presence_adapter.py +++ b/pkg/presence_adapter.py @@ -1093,7 +1093,7 @@ def arpa(self): if self.DEBUG: print("spotted IP address in nbtscan_results, so extracting name form there") try: - for nbtscan_line in nbtscan_results.split('\n'): + for nbtscan_line in nbtscan_results.stdout.split('\n'): if ip_address in nbtscan_line: #line = line.replace("#PRE","") nbtscan_line = nbtscan_line.rstrip() @@ -1165,7 +1165,7 @@ def arpa(self): if self.DEBUG: print("spotted IP address in nbtscan_results, so extracting name form there") try: - for nbtscan_line in nbtscan_results.split('\n'): + for nbtscan_line in nbtscan_results.stdout.split('\n'): if ip_address in nbtscan_line: #line = line.replace("#PRE","") nbtscan_line = nbtscan_line.rstrip()