added exception for input convertion errors

Signed-off-by: Alexander Skjolden <alex@plastboks.net>
no newline on first line

Signed-off-by: Alexander Skjolden <alex@plastboks.net>