diff options
Diffstat (limited to 'modules/language/python/exceptions.scm')
-rw-r--r-- | modules/language/python/exceptions.scm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/language/python/exceptions.scm b/modules/language/python/exceptions.scm index 51928b9..2922f3f 100644 --- a/modules/language/python/exceptions.scm +++ b/modules/language/python/exceptions.scm @@ -5,6 +5,7 @@ Exception ValueError TypeError IndexError KeyError AttributeError SyntaxError SystemException + OSError None)) (define-syntax-rule (aif it p x y) (let ((it p)) (if it x y))) @@ -20,6 +21,7 @@ (define TypeError 'TypeError) (define AttributeError 'AttributeError) (define SyntaxError 'SyntaxError) +(define OSError 'OSError) (define-python-class Exception () (define __init__ |