[root@localhost vagrant]# liaison
Traceback (most recent call last):
File "/usr/bin/liaison", line 19, in <module>
main()
File "/usr/bin/liaison", line 11, in main
lc = load_config(args.config)
File "/usr/lib/python2.6/site-packages/liaison/config.py", line 113, in load_config
with open(path) as f:
TypeError: coercing to Unicode: need string or buffer, NoneType found
This is a problem with type checking in bin/liaison. It should verify that args.config is not None.
def main():
parser = argparse.ArgumentParser()
parser.add_argument('--config', help='Configuration file path')
args = parser.parse_args()
if 'config' in args and args.config is not None:
lc = load_config(args.config)
else:
lc = LiaisonConfig()
while True:
loop(lc)
if __name__ == "__main__":
main()