python base.py: change exception
Ilya committed
Jan 31, 2017 at 13:11 UTC
0f6cda50f0344ca8cc955700ee990cd9578bfb62
1 file changed
+1
-1
python.d/python_modules/base.py
+1
-1
@@ -34,7 +34,7 @@ import msg
34
35
try:
36
PATH = os.getenv('PATH').split(':')
37
-except NameError:
37
+except AttributeError:
38
PATH = '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'.split(':')
39
40