From 6b62e037f2f828ec6bf9c7e0066db32cfb54abef Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 21 Dec 2012 18:48:12 +0000 Subject: Improved error handling in Python by loading error descriptions from data. Fix connecting and disconnecting with ingenish. Fix path problems. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4875 a436a847-0d15-0410-975c-d299462d15a1 --- scripts/ingenish | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'scripts/ingenish') diff --git a/scripts/ingenish b/scripts/ingenish index 3e572dbf..9e4b86ae 100755 --- a/scripts/ingenish +++ b/scripts/ingenish @@ -97,14 +97,13 @@ if len(sys.argv) - a == 0: try: run(shlex.split(raw_input('> '))) except (EOFError, KeyboardInterrupt, SystemExit): - print('error') break except: - print('error: %s' % sys.exc_info()[0]) + print('error: %s' % sys.exc_info()[1]) else: - update = run(sys.argv[1:]) - if update: - print update.serialize(format='n3') - else: - print_usage() - sys.exit(1) + try: + update = run(sys.argv[1:]) + if update: + print update.serialize(format='n3') + except: + print('error: %s' % sys.exc_info()[1]) -- cgit v1.2.1