Skip to content

Commit 096f4cc

Browse files
committed
Only rollback if widevine is installed
1 parent cd375cb commit 096f4cc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/inputstreamhelper/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1091,6 +1091,11 @@ def rollback_libwv(self):
10911091
backup_path = self._backup_path()
10921092
versions = os.listdir(backup_path)
10931093

1094+
# Return if Widevine is not installed
1095+
if not os.path.exists(self._widevine_config_path()):
1096+
notification(localize(30004), localize(30041))
1097+
return
1098+
10941099
if 'x86' in self._arch():
10951100
installed_version = self._load_widevine_config()['version']
10961101
else:

0 commit comments

Comments
 (0)