diff options
| author | Jan Brauer <jan@jimdo.com> | 2012-01-29 17:18:30 +0100 |
|---|---|---|
| committer | Jan Brauer <jan@jimdo.com> | 2012-01-29 17:18:30 +0100 |
| commit | 14bd964fb11fb45af394212541a4314ab1fa384a (patch) | |
| tree | c7a07732697991e2e29394c143f6cdf7dcfbba20 /tablib | |
| parent | 6bfc6634bad3f8315f6c8ffacf3437c8129a4b62 (diff) | |
| download | tablib-14bd964fb11fb45af394212541a4314ab1fa384a.tar.gz | |
Fix #50 - Catch YAML ScannerError
Diffstat (limited to 'tablib')
| -rw-r--r-- | tablib/formats/_yaml.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tablib/formats/_yaml.py b/tablib/formats/_yaml.py index c9ffbd3..1c4f8d4 100644 --- a/tablib/formats/_yaml.py +++ b/tablib/formats/_yaml.py @@ -60,5 +60,6 @@ def detect(stream): return True else: return False - except (yaml.parser.ParserError, yaml.reader.ReaderError): + except (yaml.parser.ParserError, yaml.reader.ReaderError, + yaml.scanner.ScannerError): return False |
