mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 13:45:36 -04:00
Fix bug in Executor._run_openmc that caused infinite loop in Python 3
This commit is contained in:
parent
9b8e6cb758
commit
d267bbd784
1 changed files with 1 additions and 1 deletions
|
|
@ -35,7 +35,7 @@ class Executor(object):
|
|||
print(line, end='')
|
||||
|
||||
# If OpenMC is finished, break loop
|
||||
if line == '' and p.poll() != None:
|
||||
if not line and p.poll() != None:
|
||||
break
|
||||
|
||||
# Return the returncode (integer, zero if no problems encountered)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue