Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.7.1, 0.7.2, and 0.7.3

shlib: try/except import routine

safety check in case old files cause errors, do not hold
up normal operations if this fails.

Changeset 923c2009f619

Parent b972f1cb8836

by Steve Borho

Changes to one file · Browse files at 923c2009f619 Showing diff from parent b972f1cb8836 Diff from another changeset...

Change 1 of 1 Show Entire File hggtk/​shlib.py Stacked
 
112
113
114
115
116
 
 
 
 
 
117
118
119
 
112
113
114
 
 
115
116
117
118
119
120
121
122
@@ -112,8 +112,11 @@
  def _audit(self):   if os.path.exists(os.path.dirname(self._path)):   return - os.makedirs(os.path.dirname(self._path)) - self._import() + try: + os.makedirs(os.path.dirname(self._path)) + self._import() + except: + pass     def _import(self):   # import old settings data dir (TortoiseHg <= 0.7)