Skip to content

Commit 9c93cdc

Browse files
committed
fix: handle case where readline init file is missing
Ignore the FileNotFoundError. File is optional.
1 parent fb8f4ed commit 9c93cdc

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

roundup/admin.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2270,7 +2270,12 @@ def interactive(self):
22702270

22712271
try:
22722272
import readline
2273-
readline.read_init_file(initfile)
2273+
try:
2274+
readline.read_init_file(initfile)
2275+
except FileNotFoundError:
2276+
# file is optional
2277+
pass
2278+
22742279
try:
22752280
readline.read_history_file(histfile)
22762281
except FileNotFoundError:

0 commit comments

Comments
 (0)