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

correctly close tmppng file

parent 3342974b
No related branches found
No related tags found
No related merge requests found
......@@ -130,7 +130,8 @@ def latex_to_image(str_):
try:
tmpdir = mkdtemp(prefix='gajimtex')
tmppng = mkstemp(prefix='gajim_tex', suffix='.png')[1]
tmpfd, tmppng = mkstemp(prefix='gajim_tex', suffix='.png')
tmpfd.close()
except Exception:
raise LatexError('could not securely create one or more temporary files'
' for LaTeX conversion')
......
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