Skip to content

Commit 296bce5

Browse files
committed
fix: Use Exception instead of ImportError for readline setup
Signed-off-by: shbhmexe <[email protected]>
1 parent 270c3a2 commit 296bce5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SU2_PY/SU2/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ class DivergenceFailure(EvaluationFailure):
2828
readline.parse_and_bind("bind ^I rl_complete")
2929
else:
3030
readline.parse_and_bind("tab: complete")
31-
except ImportError:
31+
except Exception:
3232
pass # readline is optional, continue without it

0 commit comments

Comments
 (0)