fix 987 by removing broken and unnecessary ValueError clause
removing apparently-defunct workaround