Skip to content
Snippets Groups Projects
Commit 73899b95 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

fix a loop. Fixes #7142

parent 9a651937
No related branches found
No related tags found
No related merge requests found
...@@ -59,6 +59,7 @@ def check_blacklist(str_): ...@@ -59,6 +59,7 @@ def check_blacklist(str_):
def get_tmpfile_name(): def get_tmpfile_name():
random.seed() random.seed()
nb = 0
while(nb < 100): while(nb < 100):
int_ = random.randint(0, 10000) int_ = random.randint(0, 10000)
filename = os.path.join(gettempdir(), 'gajimtex_' + int_.__str__()) filename = os.path.join(gettempdir(), 'gajimtex_' + int_.__str__())
...@@ -71,6 +72,7 @@ def get_tmpfile_name(): ...@@ -71,6 +72,7 @@ def get_tmpfile_name():
break break
if ok: if ok:
return filename return filename
nb += 1
return filename return filename
def write_latex(filename, str_): def write_latex(filename, str_):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment