Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 2.0.1, 2.0.2, and 2.0.3

stable about: catch only expected exceptions

Changeset b6c26a7d0418

Parent a85efe8bd703

by Yuya Nishihara

Changes to one file · Browse files at b6c26a7d0418 Showing diff from parent a85efe8bd703 Diff from another changeset...

 
176
177
178
179
 
180
181
182
183
184
185
186
 
187
188
189
 
176
177
178
 
179
180
181
182
183
184
185
 
186
187
188
189
@@ -176,14 +176,14 @@
  if platform == p:   upgradeurl = _url.strip()   break - except: + except (OSError, IndexError, ImportError):   pass   try:   thgv = version.version()   if '+' in thgv:   thgv = thgv[:thgv.index('+')]   curver = tuple([int(p) for p in thgv.split('.')]) - except Exception: + except ValueError:   curver = (0,0,0)   if newver > curver:   url_lbl = _('A new version of TortoiseHg is ready for download!')