rmg_det_to_db: rearrange exception handling to catch and quarantine the unexpected case
Merge branch 'master' of github.com:QRAAT/QRAAT