Permalink
Browse files

Make hardware profiler ignore errors and continue.

This wraps the various subsets of MythTV data extracted from the
database with a 'try' block, allowing it to ignore and proceed if one of
the subsets fails due to bad data or an unexpected configuration.

Fixes #10986
  • Loading branch information...
1 parent 9cba97b commit b5e154fe816742b18adcc73e409044f06a4b723e @wagnerrp wagnerrp committed Aug 18, 2012
Showing with 15 additions and 11 deletions.
  1. +15 −11 mythtv/programs/scripts/hardwareprofile/distros/mythtv_data/data_mythtv.py
@@ -459,17 +459,21 @@ def ProcessSmoltInfo(self):
def get_data(self,gate):
self._data = OrdDict()
- self._data.update(self.ProcessVersion())
- self._data.update(self.ProcessPrograms())
- self._data.update(self.ProcessHistorical())
- self._data.update(self.ProcessSource())
- self._data.update(self.ProcessTimeZone())
- self._data.update(self.ProcessStorage())
- self._data.update(self.ProcessAudio())
- self._data.update(self.ProcessVideoProfile())
- self._data.update(self.ProcessMySQL())
- self._data.update(self.ProcessScheduler())
- self._data.update(self.Processtuners())
+ for func in (self.ProcessVersion,
+ self.ProcessPrograms,
+ self.ProcessHistorical,
+ self.ProcessSource,
+ self.ProcessTimeZone,
+ self.ProcessStorage,
+ self.ProcessAudio,
+ self.ProcessVideoProfile,
+ self.ProcessMySQL,
+ self.ProcessScheduler,
+ self.Processtuners):
+ try:
+ self._data.update(func())
+ except:
+ pass
self._data.theme = _SETTINGS.Theme
self._data.country = _SETTINGS.Country

0 comments on commit b5e154f

Please sign in to comment.