Handle case where no notoconfig file exists.
@@ -113,6 +113,9 @@ def get(key, default=''):
if __name__ == '__main__':
keyset = set(_values.keys())
+ if not keyset:
+ print 'no keys defined, probably no notoconfig file was found.'
+ else:
wid = max(len(k) for k in keyset)
fmt = '%%%ds: %%s' % wid
for k in sorted(keyset):
