apart from IOError as e: if e.errno == errno.EACCES: return "some default information" # Not a permission mistake. increaseIf you're on Python 2, you are able to backport the pathlib module from pypi, pathlib2, or in any other case check isfile in the os.route module:DaedalusDaedalus 41644 silver badges1818 bronze badges one After i operate activat