Adding except block to find why getting bad error