Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8.1, 0.8.2, and 0.8.3

hgemail: fix 2nd error message when tmpfile can not be created

Changeset 21230bc4f9e3

Parent a0530bb86dc8

by Simon Heimberg

Changes to one file · Browse files at 21230bc4f9e3 Showing diff from parent a0530bb86dc8 Diff from another changeset...

Change 1 of 2 Show Entire File hggtk/​hgemail.py Stacked
 
361
362
363
 
364
365
366
 
375
376
377
378
 
 
 
 
361
362
363
364
365
366
367
 
376
377
378
 
379
380
381
@@ -361,6 +361,7 @@
  desc = self.descbuffer.get_text(start, end)   if desc and self._intro:   cmdline += ['--intro'] + tmpfile = None   try:   fd, tmpfile = tempfile.mkstemp(prefix="thg_emaildesc_")   os.write(fd, desc) @@ -375,4 +376,6 @@
  finally:   if oldpager:   os.environ['PAGER'] = oldpager - os.unlink(tmpfile) + if tmpfile: + os.unlink(tmpfile) +