@cryptotaxi247 / netdata-1 / commits / 8dcdd77e4

ExecutableService: retrun [] instead of None if no data. (#4346)

This fixes a bug in the logind module causing it to throw errors when there are no users logged in. No net change for any other in-tree ExecutableService users. All of them either use truth value testing or depend on errors being thrown when trying to subscript the return value, both of which behave the same for an empty list and None.

Austin S. Hemmelgarn committed Oct 2, 2018 at 13:06 UTC 8dcdd77e4df3caadc656c82ec5a534420b128bff
1 file changed +1 -1
python.d/python_modules/bases/FrameworkServices/ExecutableService.py
+1 -1
@@ -36,7 +36,7 @@ class ExecutableService(SimpleService):
36 except TypeError:
37 continue
38
39 - return data or None
39 + return data
40
41 def check(self):
42 """