def delete_current(self, *_args):
        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 IOError:
                pass
        else:
            self.next_photo()
Given an exception, this will test if the exception was due to a
dataset/ETHPy150Open thesamet/webilder/src/webilder/base_applet.py/BaseApplet.delete_current--crossover with--dataset/ETHPy150Open galaxyproject/pulsar/pulsar/util/pastescript/loadwsgi.py/fix_type_error