When conf.d is empty, one gets: Traceback (most recent call last): File "/opt/thinlinc/sbin/../libexec/tl-setup.py", line 1158, in <module> main() File "/opt/thinlinc/sbin/../libexec/tl-setup.py", line 1082, in main ask_for_admin_email() File "/opt/thinlinc/sbin/../libexec/tl-setup.py", line 575, in ask_for_admin_email addr = hive.get_string("/vsmserver/admin_email", "") AttributeError: 'NoneType' object has no attribute 'get_string'
The specific example shown above with tl-setup was resolved in commit r24506, we should however still look into how to handle this problem more generally.
This issue is caused by hiveconf.open_hive() returning None when failing to open the hive file (this is following the hiveconf specification). Because of this we always need to check that open_hive() doesn't return None before we can continue.