Skip to content

Commit

Permalink
Only rollback if widevine is installed
Browse files Browse the repository at this point in the history
  • Loading branch information
mediaminister committed Feb 29, 2020
1 parent cd375cb commit 096f4cc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/inputstreamhelper/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1091,6 +1091,11 @@ def rollback_libwv(self):
backup_path = self._backup_path()
versions = os.listdir(backup_path)

# Return if Widevine is not installed
if not os.path.exists(self._widevine_config_path()):
notification(localize(30004), localize(30041))
return

if 'x86' in self._arch():
installed_version = self._load_widevine_config()['version']
else:
Expand Down

0 comments on commit 096f4cc

Please sign in to comment.