Merge branch 'master' into release/1.36
# Conflicts: # service/update.py
This commit is contained in:
@@ -135,7 +135,7 @@ class CargoView(d.Display):
|
|||||||
sFit = Fit.getInstance()
|
sFit = Fit.getInstance()
|
||||||
fit = sFit.getFit(event.fitID)
|
fit = sFit.getFit(event.fitID)
|
||||||
|
|
||||||
self.Parent.Parent.DisablePage(self, not fit or fit.isStructure)
|
# self.Parent.Parent.DisablePage(self, not fit or fit.isStructure)
|
||||||
|
|
||||||
# Clear list and get out if current fitId is None
|
# Clear list and get out if current fitId is None
|
||||||
if event.fitID is None and self.lastFitId is not None:
|
if event.fitID is None and self.lastFitId is not None:
|
||||||
|
|||||||
@@ -52,8 +52,8 @@ class CheckUpdateThread(threading.Thread):
|
|||||||
key=lambda x: calendar.timegm(dateutil.parser.parse(x['published_at']).utctimetuple()),
|
key=lambda x: calendar.timegm(dateutil.parser.parse(x['published_at']).utctimetuple()),
|
||||||
reverse=True
|
reverse=True
|
||||||
)
|
)
|
||||||
|
|
||||||
for release in jsonResponse[:5]:
|
for release in jsonResponse[:5]:
|
||||||
# sometimes, depending on the tag name, things break. If they do, just continue to the next iteration
|
|
||||||
try:
|
try:
|
||||||
# Suppress pre releases
|
# Suppress pre releases
|
||||||
if release['prerelease'] and self.settings.get('prerelease'):
|
if release['prerelease'] and self.settings.get('prerelease'):
|
||||||
@@ -90,6 +90,8 @@ class CheckUpdateThread(threading.Thread):
|
|||||||
wx.CallAfter(self.callback, release) # Singularity -> Singularity
|
wx.CallAfter(self.callback, release) # Singularity -> Singularity
|
||||||
break
|
break
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
# if we break at version checking, try the next version
|
||||||
|
pyfalog.error(e)
|
||||||
continue
|
continue
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
pyfalog.error("Caught exception in run")
|
pyfalog.error("Caught exception in run")
|
||||||
|
|||||||
Reference in New Issue
Block a user