From 4a45480c09e65b1d72aaf41a8ab13f4ea64b890d Mon Sep 17 00:00:00 2001 From: Difrex Date: Sun, 9 Oct 2016 00:59:26 +0300 Subject: [PATCH] Check path --- mzrm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/mzrm b/mzrm index bb4bd90..5386147 100755 --- a/mzrm +++ b/mzrm @@ -64,7 +64,10 @@ zk.start() path, regex = prepare_args() # Do it -for child in zk.get_children(path): - remove(child) +try: + for child in zk.get_children(path): + remove(child) +except: + print('E: path ' + path + ' is not found') zk.stop()