adds a ValueError condition #139
Merge branch 'dev' of https://github.com/ankurankan/pgmpy into dev