This can probably go in its own try/except block