sys.setdlopenflags doesn't exist on PyPy, so catch AttributeError