Skip to content

Commit 235a032

Browse files
committed
ri_wellmod Resolve mypy issue
1 parent 51175f1 commit 235a032

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/subscript/ri_wellmod/ri_wellmod.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,6 @@ def launch_resinsight(console_mode: bool, command_line_parameters: List[str]):
241241
wrapper = True
242242

243243
# First launch attempt (always try twice, occasionally times out on busy nodes)
244-
resinsight = False
245244
try:
246245
resinsight = rips.Instance.launch(
247246
resinsight_executable=resinsight_exe,
@@ -264,6 +263,7 @@ def launch_resinsight(console_mode: bool, command_line_parameters: List[str]):
264263
logger.critical(
265264
"Failed to launch ResInsight (%s) again - stopping now.", resinsight_exe
266265
)
266+
resinsight = None
267267

268268
if wrapper:
269269
riexe_path.unlink() # Delete wrapper

0 commit comments

Comments
 (0)