Skip to content

Commit

Permalink
MNT: fix pylint messages on file handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
phmbressan committed Sep 5, 2024
1 parent df07955 commit 8082710
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rocketpy/simulation/monte_carlo.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,8 @@ def __setup_files(self, append):
idx_i = len(input_file.readlines())
with open(self._output_file, open_mode, encoding="utf-8") as output_file:
idx_o = len(output_file.readlines())
open(self._error_file, open_mode, encoding="utf-8").close()
with open(self._error_file, open_mode, encoding="utf-8"):
pass

if idx_i != idx_o and not append:
warnings.warn(
Expand Down

0 comments on commit 8082710

Please sign in to comment.