Skip to content

Commit

Permalink
[SoftwareUpdate] Fix TypeError crash
Browse files Browse the repository at this point in the history
16:33:13.4786 Traceback (most recent call last):
16:33:13.4791   File "/usr/lib/enigma2/python/Components/Ipkg.py", line 120, in cmdFinished
16:33:13.4813     self.callCallbacks(self.EVENT_DONE)
16:33:13.4815   File "/usr/lib/enigma2/python/Components/Ipkg.py", line 181, in callCallbacks
16:33:13.4833     callback(event, param)
16:33:13.4835   File "/usr/lib/enigma2/python/Screens/SoftwareUpdate.py", line 276, in ipkgCallback
16:33:13.4864     if self.total_packages > 150:
16:33:13.4869 TypeError: '>' not supported between instances of 'NoneType' and 'int'
  • Loading branch information
Huevos committed Dec 2, 2021
1 parent 03933e3 commit f124f7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/python/Screens/SoftwareUpdate.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ def ipkgCallback(self, event, param):
elif config.softwareupdate.updateisunstable.value == '0':
self.total_packages = len(self.ipkg.getFetchedList())
message = _("Do you want to update your %s %s ?") % (getMachineBrand(), getMachineName()) + "\n(" + (ngettext("%s updated package available", "%s updated packages available", self.total_packages) % self.total_packages) + ")"
if self.total_packages > 150:
if self.total_packages is not None and self.total_packages > 150:
message += " " + _("Reflash recommended!")
if self.total_packages:
global ocram
Expand Down

0 comments on commit f124f7c

Please sign in to comment.