Mercurial > p > roundup > code
diff roundup/admin.py @ 7798:f84f7879c768
fix: handle case where readline init file is missing
Ignore the FileNotFoundError. File is optional.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Sun, 10 Mar 2024 22:47:58 -0400 |
| parents | 8bdf0484215c |
| children | 10da9e12c10f |
line wrap: on
line diff
--- a/roundup/admin.py Sun Mar 10 21:59:20 2024 -0400 +++ b/roundup/admin.py Sun Mar 10 22:47:58 2024 -0400 @@ -2270,7 +2270,12 @@ 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:
