Skip to content

Commit 0f6cda5

Browse files
committed
python base.py: change exception
1 parent d3ef7da commit 0f6cda5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

python.d/python_modules/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
try:
3636
PATH = os.getenv('PATH').split(':')
37-
except NameError:
37+
except AttributeError:
3838
PATH = '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'.split(':')
3939

4040

0 commit comments

Comments
 (0)