We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df07955 commit 8082710Copy full SHA for 8082710
rocketpy/simulation/monte_carlo.py
@@ -224,7 +224,8 @@ def __setup_files(self, append):
224
idx_i = len(input_file.readlines())
225
with open(self._output_file, open_mode, encoding="utf-8") as output_file:
226
idx_o = len(output_file.readlines())
227
- open(self._error_file, open_mode, encoding="utf-8").close()
+ with open(self._error_file, open_mode, encoding="utf-8"):
228
+ pass
229
230
if idx_i != idx_o and not append:
231
warnings.warn(
0 commit comments