Skip to content

Commit

Permalink
drgn.internal.repl: also catch AttributeError in enhanced REPL attempt
Browse files Browse the repository at this point in the history
I didn't see this in practice, it's mostly out of paranoia. In
particular, if _pyrepl.readline._setup() goes away, this will catch it.

Signed-off-by: Omar Sandoval <[email protected]>
  • Loading branch information
osandov committed Dec 16, 2024
1 parent 120428f commit 4006581
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drgn/internal/repl.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def interact(local: Dict[str, Any], banner: str) -> None:
print(banner, file=sys.stderr)
run_multiline_interactive_console(console)

except (ModuleNotFoundError, ImportError):
except (ModuleNotFoundError, ImportError, AttributeError):
import code
import readline

Expand Down

0 comments on commit 4006581

Please sign in to comment.