mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-17 02:43:26 +00:00
Guard a print statement with the verbose flag,
so it won't corrupt json or XML output.
This commit is contained in:
parent
1da4dbaa7c
commit
c3b5a73ada
@ -430,7 +430,8 @@ class Parser:
|
||||
self.parse_line_without_commands(rawline)
|
||||
|
||||
if self.keep_temp_dir is None and self.temp_dir:
|
||||
print("removing " + self.temp_dir)
|
||||
if self.verbose:
|
||||
print("removing " + self.temp_dir)
|
||||
shutil.rmtree(self.temp_dir, ignore_errors = True)
|
||||
|
||||
def handle_command(self, com):
|
||||
|
Loading…
x
Reference in New Issue
Block a user