this is fine, though we generally import these exceptions at the top of the file along with the library

```
...
import requests
from requests.exceptions import ConnectionError, MissingSchema

...


try:
   ...
except MissingSchema as ex:
   ...
```