From 3f611decfeb9870f2b2dea4080bbfe628d28446b Mon Sep 17 00:00:00 2001 From: Christoph Goehre Date: Sun, 30 May 2010 11:09:47 +0200 Subject: exit with 1 instead of backtrace by creating mini-dinstall's folder --- mini-dinstall | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mini-dinstall b/mini-dinstall index 70ca221..274527c 100755 --- a/mini-dinstall +++ b/mini-dinstall @@ -171,7 +171,11 @@ def do_and_log(msg, function, *args): def do_mkdir(name): if os.access(name, os.X_OK): return - do_and_log('Creating directory "%s"' % (name), os.mkdir, name) + try: + do_and_log('Creating directory "%s"' % (name), os.mkdir, name) + except OSError, e: + print e + exit(1) def do_rename(source, target): do_and_log('Renaming "%s" to "%s"' % (source, target), os.rename, source, target) -- cgit v1.2.3