Skip to content

Commit

Permalink
[ChannelSelection] Avoid BSoD from some badly coded plugins
Browse files Browse the repository at this point in the history
(cherry picked from commit 1f88c91)
  • Loading branch information
Huevos authored and Ev0-BH committed Nov 26, 2021
1 parent 3c2d645 commit e8a6d69
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/python/Screens/ChannelSelection.py
Original file line number Diff line number Diff line change
Expand Up @@ -2040,7 +2040,12 @@ def __init__(self, session):
})

if type(self) is ChannelSelection:
assert ChannelSelection.instance is None, "class InfoBar is a singleton class and just one instance of this class is allowed!"
try:
assert ChannelSelection.instance is None, "class InfoBar is a singleton class and just one instance of this class is allowed!"
except Exception as err:
print("%s: '%s'" % (type(err).__name__, err))
import traceback
traceback.print_exc()
ChannelSelection.instance = self
self.startServiceRef = None
self.history = []
Expand Down

0 comments on commit e8a6d69

Please sign in to comment.