corrected exception handling

exceptions.runtime_error did not appear to exist any longer, so I
changed all instances to osexception