only catch OSError
Also using the same code for update.py