Add try except to is_admin check. Fix #645

Which is the specific error that can be raised here?