From c74efa59dc37b06cc1aeddd0ba736552a5b9f35e Mon Sep 17 00:00:00 2001 From: Michael Schwarz Date: Sat, 20 Dec 2014 22:22:04 +0100 Subject: Rewritten unit conversion methods of inkex.py to properly handle viewport settings. --- support/openscad/__main__.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'support/openscad') diff --git a/support/openscad/__main__.py b/support/openscad/__main__.py index 08b2ab6..0f319f8 100644 --- a/support/openscad/__main__.py +++ b/support/openscad/__main__.py @@ -34,4 +34,10 @@ def main(in_path, out_path, deps_path): _write_dependencies(deps_path, relpath(out_path), deps - ignored_files) -main(*sys.argv[1:]) +try: + main(*sys.argv[1:]) +except util.UserError as e: + print 'Error:', e + sys.exit(1) +except KeyboardInterrupt: + sys.exit(2) -- cgit