is the try/except on the next line actually necessary? please just sanity check the variables