Skip to content

Commit 92ab2e5

Browse files
committed
Some tolerance for GraalVM...
It has no set-history-length()
1 parent c2668a1 commit 92ab2e5

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

trepan/interfaces/user.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,10 @@ def __init__(self, inp=None, out=None, opts={}):
7575
except Exception:
7676
# PyPy read_history_file fails
7777
return
78-
set_history_length(50)
78+
try:
79+
set_history_length(50)
80+
except Exception:
81+
pass
7982
atexit.register(self.user_write_history_file)
8083
pass
8184
return

0 commit comments

Comments
 (0)