Extending the try-except block

The try/except block should also wrap around the Capture.query command.  Ran into a situation where line 58 ```capture_record.job_status``` was failing because capture_record was None.