diff options
| author | Daniel Balparda <balparda@google.com> | 2015-03-16 15:11:41 -0700 |
|---|---|---|
| committer | Daniel Balparda <balparda@google.com> | 2015-03-16 15:11:41 -0700 |
| commit | b8b28f0a31e57edfdd31c9026c1d04e181d0f4b5 (patch) | |
| tree | 2caf915028331b37b83bec3ce9d01a480d9b3438 /astroid/builder.py | |
| parent | 9d4e5f00e4e4222ec6e225fc7598245b6329ddc2 (diff) | |
| download | astroid-git-b8b28f0a31e57edfdd31c9026c1d04e181d0f4b5.tar.gz | |
Fix bug/crash when confronted with an invalid \x escape (ex: '\x1').
Diffstat (limited to 'astroid/builder.py')
| -rw-r--r-- | astroid/builder.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/astroid/builder.py b/astroid/builder.py index 1fe7a36d..319e6e60 100644 --- a/astroid/builder.py +++ b/astroid/builder.py @@ -162,7 +162,7 @@ class AstroidBuilder(InspectBuilder): # this method could be wrapped with a pickle/cache function try: node = parse(data + '\n') - except TypeError as exc: + except (TypeError, ValueError) as exc: raise AstroidBuildingException(exc) if path is not None: node_file = abspath(path) |
