diff --git a/.coveragerc b/.coveragerc index 44aedb03..67731d12 100644 --- a/.coveragerc +++ b/.coveragerc @@ -3,7 +3,8 @@ exclude_lines = pragma: no cover raise NotImplementedError raise Unsupported + raise Exception except ImportError def __repr__ def __bool__ - if __name__ == .__main__.: \ No newline at end of file + if __name__ == .__main__.: diff --git a/plexapi/utils.py b/plexapi/utils.py index 5f4ac5e2..f900d8df 100644 --- a/plexapi/utils.py +++ b/plexapi/utils.py @@ -74,14 +74,6 @@ def cast(func, value): return value -def getattributeOrNone(obj, self, attr): - """ Returns result from __getattribute__ or None if not found. """ - try: - return super(obj, self).__getattribute__(attr) - except AttributeError: - return None - - def joinArgs(args): """ Returns a query string (uses for HTTP URLs) where only the value is URL encoded. Example return value: '?genre=action&type=1337'. @@ -198,7 +190,7 @@ def toList(value, itemcast=None, delim=','): return [itemcast(item) for item in value.split(delim) if item != ''] -def downloadSessionImages(server, filename=None, height=150, width=150, opacity=100, saturation=100): +def downloadSessionImages(server, filename=None, height=150, width=150, opacity=100, saturation=100): # pragma: no cover """ Helper to download a bif image or thumb.url from plex.server.sessions. Parameters: