Skip to content

Commit

Permalink
pylint: disable=unsubscriptable-object
Browse files Browse the repository at this point in the history
The warning is because args in initialized as None
See pylint-dev/pylint#1498
False positive with unsubscriptable-object...
  • Loading branch information
digitalfrost committed Aug 19, 2019
1 parent 1564945 commit d506bcb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions UM/PluginError.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ class PluginError(Exception):
## Raised when a plugin could not be found.
class PluginNotFoundError(PluginError):
def __str__(self):
name = self.args[0]
name = self.args[0] # pylint: disable=unsubscriptable-object
return "Could not find plugin " + name


## Raised when a plugin provides incorrect metadata.
class InvalidMetaDataError(PluginError):
def __str__(self):
name = self.args[0]
name = self.args[0] # pylint: disable=unsubscriptable-object
return "Invalid metadata for plugin " + name

0 comments on commit d506bcb

Please sign in to comment.