From ef48f8be470e07f600d3d94d9cab03833fcb7eb9 Mon Sep 17 00:00:00 2001 From: bigeagle Date: Sun, 19 Oct 2014 14:03:29 +0800 Subject: [PATCH] bug fix --- tunasync_snapshot_gc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tunasync_snapshot_gc.py b/tunasync_snapshot_gc.py index 60957f8..cdbb2eb 100644 --- a/tunasync_snapshot_gc.py +++ b/tunasync_snapshot_gc.py @@ -27,8 +27,8 @@ if __name__ == "__main__": print("GC: {}".format(abs_fname)) try: ret = sh.btrfs("subvolume", "delete", abs_fname) - except sh.ErrorReturnCode: - print("Error: {}".format(ret.stderr)) + except sh.ErrorReturnCode, e: + print("Error: {}".format(e.stderr)) else: walk(abs_fname, level+1)