Skip to content

Commit b627794

Browse files
authored
Merge pull request #231 from RedisLabsModules/fix-env-disposal-exception
Fix the use before assignment
2 parents 60e3290 + cb8a5cc commit b627794

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RLTest/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,10 +605,10 @@ def takeEnvDown(self, fullShutDown=False):
605605
env=self.currEnv)
606606

607607
if needShutdown:
608+
flush_ok = True
608609
if self.currEnv.isUp():
609610
try:
610611
self.currEnv.flush()
611-
flush_ok = True
612612
except:
613613
flush_ok = False
614614
self.currEnv.stop()

0 commit comments

Comments
 (0)