summaryrefslogtreecommitdiff
path: root/modules/language/python/spec.scm
diff options
context:
space:
mode:
Diffstat (limited to 'modules/language/python/spec.scm')
-rw-r--r--modules/language/python/spec.scm7
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/language/python/spec.scm b/modules/language/python/spec.scm
index 8451222..8291a14 100644
--- a/modules/language/python/spec.scm
+++ b/modules/language/python/spec.scm
@@ -1,4 +1,5 @@
(define-module (language python spec)
+ #:use-module (language python guilemod)
#:use-module (parser stis-parser lang python3-parser)
#:use-module ((language python module python) #:select ())
#:use-module (language python compile)
@@ -31,7 +32,11 @@
(define (e x) (eval (c x) (current-module)))
-(set! (@@ (ice-9 readline) *readline-completion-function*) (complete-fkn e))
+(catch #t
+ (lambda ()
+ (set! (@@ (ice-9 readline) *readline-completion-function*)
+ (complete-fkn e)))
+ (lambda x #f))
(define-language python
#:title "python"