diff --git a/pydoop/app/main.py b/pydoop/app/main.py
index <HASH>..<HASH> 100644
--- a/pydoop/app/main.py
+++ b/pydoop/app/main.py
@@ -81,5 +81,5 @@ def main(argv=None):
         pass
     try:
         args.func(args, unknown)
-    except Exception as e:
+    except RuntimeError as e:
         sys.exit("ERROR - {}:  {}".format(type(e).__name__, e))
RuntimeError are caught in app/main.py and a pretty error message is shown