diff options
author | vrde <agranzot@gmail.com> | 2018-04-18 14:48:23 +0200 |
---|---|---|
committer | vrde <agranzot@gmail.com> | 2018-04-19 11:44:25 +0200 |
commit | 41ac85cd6b68a0e6b1a53e79ae497e315008f12a (patch) | |
tree | 01225c2bd561fa788feef685432998ac340b33c7 /pycco/main.py | |
parent | fce7f146a3c70e637af86e9fa9856515d3165b8f (diff) | |
download | pycco-41ac85cd6b68a0e6b1a53e79ae497e315008f12a.tar.gz |
Option --skip-bad-files now skips all kind of bad files
Diffstat (limited to 'pycco/main.py')
-rw-r--r-- | pycco/main.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pycco/main.py b/pycco/main.py index f0d4fcf..492058b 100644 --- a/pycco/main.py +++ b/pycco/main.py @@ -521,9 +521,9 @@ def process(sources, preserve_paths=True, outdir=None, language=None, print("pycco: {} -> {}".format(s, dest)) generated_files.append(dest) - except UnicodeDecodeError: + except (ValueError, UnicodeDecodeError) as e: if skip: - print("pycco [FAILURE]: {}".format(s)) + print("pycco [FAILURE]: {}, {}".format(s, e)) else: raise |