diff options
Diffstat (limited to 'prolog/util.py')
-rw-r--r-- | prolog/util.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/prolog/util.py b/prolog/util.py index a9fe944..ba48732 100644 --- a/prolog/util.py +++ b/prolog/util.py @@ -57,7 +57,7 @@ from .parser import parser def parse(code): try: return parser.parse(code) - except: + except SyntaxError: return None # Return a list of tokens in [text]. |