Did I find the right examples for you? yes no

All Samples(7)  |  Call(7)  |  Derive(0)  |  Import(0)

        def undo_operations(undo_log):
    log('Exception occured, rolling back...')
    while undo_log:
        callback = undo_log.pop()
        callback()
        


src/h/o/homefiles-2.0.6/homefiles/__init__.py   homefiles(Download)
                self._link_bundle(bundle, undo_log)
            except utils.NotASymlink as e:
                utils.undo_operations(undo_log)
                raise NotASymlink(str(e))
            except:
                utils.undo_operations(undo_log)
                self._unlink_bundle(bundle, undo_log)
            except utils.NotASymlink as e:
                utils.undo_operations(undo_log)
                raise NotASymlink(str(e))
            except:
                utils.undo_operations(undo_log)
                utils.symlink(dst_path, src_path, dry_run=self.dry_run)
            except:
                utils.undo_operations(undo_log)
                raise
        except: