diff options
author | David Robillard <d@drobilla.net> | 2012-12-21 18:48:12 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-12-21 18:48:12 +0000 |
commit | 6b62e037f2f828ec6bf9c7e0066db32cfb54abef (patch) | |
tree | 49c52f02a159b01caa4595105655fb31fa471059 /scripts/ingenish | |
parent | d1c3c41bf7a76d2eb9de79c44c04824c1bfc7768 (diff) | |
download | ingen-6b62e037f2f828ec6bf9c7e0066db32cfb54abef.tar.gz ingen-6b62e037f2f828ec6bf9c7e0066db32cfb54abef.tar.bz2 ingen-6b62e037f2f828ec6bf9c7e0066db32cfb54abef.zip |
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
Diffstat (limited to 'scripts/ingenish')
-rwxr-xr-x | scripts/ingenish | 15 |
1 files changed, 7 insertions, 8 deletions
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]) |