You can list more than one exceptions to be caught:

except (IOError, ZeroDivisionError):

Alternatively you can group exception in separate except statements

except IOError:
    print "  Could not open " + f
except ZeroDivisionError:
    print "  Error zero in " + f