Catch ValueError, close #180.

Given the comment, just below this changed line :-), i did not look into detail why a ```ValueError``` was raised here.
Coding by luck here.