Skip to content

Commit

Permalink
Merge pull request #2968 from openatv/IanSav-PluginComponent
Browse files Browse the repository at this point in the history
[PluginComponent.py] Use consistent error variable name
  • Loading branch information
jbleyel committed Jul 8, 2023
2 parents 8645413 + 1bcae03 commit 88a66aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/python/Components/PluginComponent.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ def readPluginList(self, directory):
print("[PluginComponent] Plugin probably removed, but not cleanly, in '%s'; trying to remove it." % path)
try:
rmtree(path)
except OSError as oserr:
print("[PluginComponent] Error %d: Unable to remove directory tree '%s'! (%s)" % (oserr.errno, path, oserr.strerror))
except OSError as err:
print("[PluginComponent] Error %d: Unable to remove directory tree '%s'! (%s)" % (err.errno, path, err.strerror))
continue
if not isinstance(plugins, list):
plugins = [plugins]
Expand Down

0 comments on commit 88a66aa

Please sign in to comment.