nit: 

```
    except Exception as e:
```