Could you please replace:
```python
except:
```
with
```python
except IOError:
```