def delete_current(self, *_args):
        """Deletes the currently set wallpaper."""
        if self.image_file != '':
            jpg_file = self.image_file
            inf_file = self.info_file
            self.next_photo()
            try:
                os.remove(jpg_file)
                os.remove(inf_file)
                banned = open(os.path.expanduser('~/.webilder/banned_photos'),
                              'a')
                banned.write(os.path.basename(jpg_file)+'\n')
                banned.close()
            except __HOLE__:
                pass
        else:
            self.next_photo()
dataset/ETHPy150Open thesamet/webilder/src/webilder/base_applet.py/BaseApplet.delete_current