Skip to content

Commit

Permalink
Add try block to import readline (#21)
Browse files Browse the repository at this point in the history
* Add try block to import readline

Add a try block to import readline to improve windows compatibility
  • Loading branch information
stuart-thomas-zoopla committed Feb 26, 2024
1 parent a4a2753 commit 9495ffb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion shakespearelang/_repl.py
Expand Up @@ -3,7 +3,11 @@
from ._utils import normalize_name
from tatsu.exceptions import FailedParse

import readline
try:
import readline
except ModuleNotFoundError:
print("readline module is not supported in Windows, continuing without it.")

import sys


Expand Down

0 comments on commit 9495ffb

Please sign in to comment.