Skip to content

Commit 1c76a3e

Browse files
committed
fix: replace FileNotFoundError with IOError
Python2 doesn't have the FileNotFoundError which is a subclass of IOError. So use IOError.
1 parent 9c93cdc commit 1c76a3e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

roundup/admin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2272,13 +2272,13 @@ def interactive(self):
22722272
import readline
22732273
try:
22742274
readline.read_init_file(initfile)
2275-
except FileNotFoundError:
2275+
except IOError: # FileNotFoundError under python3
22762276
# file is optional
22772277
pass
22782278

22792279
try:
22802280
readline.read_history_file(histfile)
2281-
except FileNotFoundError:
2281+
except IOError: # FileNotFoundError under python3
22822282
# no history file yet
22832283
pass
22842284

0 commit comments

Comments
 (0)