diff options
author | Timothy Edmund Crosley <timothy.crosley@gmail.com> | 2014-01-01 15:56:57 -0800 |
---|---|---|
committer | Timothy Edmund Crosley <timothy.crosley@gmail.com> | 2014-01-01 15:56:57 -0800 |
commit | 16bcc8daedd264f0398418f1a07593948b466c1d (patch) | |
tree | 84ede97d337008d7b741263579e68f9c32e834ad /scripts | |
parent | bbd49d10e4fc433a8533c4be15613622020b6793 (diff) | |
parent | a9024b31482a56d9a6a3392ea614acf46bfac68b (diff) | |
download | isort-16bcc8daedd264f0398418f1a07593948b466c1d.tar.gz |
Merge pull request #92 from timothycrosley/feature/editorconfig-support
Feature/editorconfig support
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/isort | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/scripts/isort b/scripts/isort index ac570f0d..5ff2accc 100755 --- a/scripts/isort +++ b/scripts/isort @@ -56,8 +56,11 @@ if file_names == ['-']: else: wrong_sorted_files = False for file_name in file_names: - incorrectly_sorted = SortImports(file_name, **arguments).incorrectly_sorted - if arguments.get('check', False) and incorrectly_sorted: - wrong_sorted_files = True + try: + incorrectly_sorted = SortImports(file_name, **arguments).incorrectly_sorted + if arguments.get('check', False) and incorrectly_sorted: + wrong_sorted_files = True + except IOError as e: + print("WARNING: Unable to parse file {0} due to {1}".format(file_name, e)) if wrong_sorted_files: exit(1) |