Skip to content

Commit

Permalink
[units.wesnoth.org] Increase addon parsing timeout to 60 seconds.
Browse files Browse the repository at this point in the history
  • Loading branch information
allefant committed Mar 21, 2015
1 parent 4c547f2 commit 2d19275
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions data/tools/wesnoth/wmlparser2.py
Expand Up @@ -261,8 +261,10 @@ def preprocess(self, defines):
self.preprocessed = output + "/" + os.path.basename(self.path) +\
".plain"
if not os.path.exists(self.preprocessed):
first_line = open(self.path).readline().strip()
raise WMLError(self, "Preprocessor error:\n" +
" ".join(commandline) + "\n" +
"First line: " + first_line + "\n" +
out +
err)

Expand Down
2 changes: 1 addition & 1 deletion data/tools/wmlunits
Expand Up @@ -21,7 +21,7 @@ import unit_tree.html_output as html_output
import unit_tree.overview
import unit_tree.wiki_output as wiki_output

TIMEOUT = 15
TIMEOUT = 60

def copy_images():
print("Recolorizing pictures.")
Expand Down

0 comments on commit 2d19275

Please sign in to comment.