From 9c93cdc7b89ae4968f01ca9d78e590021e947b29 Mon Sep 17 00:00:00 2001 From: John Rouillard Date: Sun, 10 Mar 2024 22:47:58 -0400 Subject: [PATCH] fix: handle case where readline init file is missing Ignore the FileNotFoundError. File is optional. --- roundup/admin.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/roundup/admin.py b/roundup/admin.py index af07808e..015dc150 100644 --- a/roundup/admin.py +++ b/roundup/admin.py @@ -2270,7 +2270,12 @@ def interactive(self): try: import readline - readline.read_init_file(initfile) + try: + readline.read_init_file(initfile) + except FileNotFoundError: + # file is optional + pass + try: readline.read_history_file(histfile) except FileNotFoundError: