def get_wallpapers(self):
        try:
            # get path of all files in the directory
            self.images = list(
                filter(os.path.isfile,
                       map(self.get_path,
                           os.listdir(self.directory))))
        except __HOLE__ as e:
            logger.exception("I/O error(%s): %s", e.errno, e.strerror)
dataset/ETHPy150Open qtile/qtile/libqtile/widget/wallpaper.py/Wallpaper.get_wallpapers