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

hgthread: catch WinIOError, prevent tracebacks

fixes #235

Changeset d06224a8edc9

Parent 4e51663e564b

by Steve Borho

Changes to one file · Browse files at d06224a8edc9 Showing diff from parent 4e51663e564b Diff from another changeset...

Change 1 of 1 Show Entire File hggtk/​hgthread.py Stacked
 
174
175
176
177
178
179
180
181
 
182
183
184
 
 
 
 
174
175
176
 
 
 
 
 
177
178
179
 
180
181
182
@@ -174,11 +174,9 @@
  self.ret = ret or 0   if self.postfunc:   self.postfunc(ret) - except hglib.RepoError, e: - self.ui.write_err(str(e)) - except util.Abort, e: - self.ui.write_err(str(e)) - except urllib2.HTTPError, e: + except (hglib.RepoError, urllib2.HTTPError, util.Abort), e:   self.ui.write_err(str(e) + '\n')   except Exception, e: - self.ui.write_err(str(e)) + self.ui.write_err(str(e) + '\n') + except hglib.WinIOError, e: + self.ui.write_err(str(e) + '\n')