Skip to content

Commit c132a6d

Browse files
committed
Fixed flake8 errors in alert.py and base.py
Signed-off-by: Andreas Maier <[email protected]>
1 parent d20f9be commit c132a6d

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

plexapi/alert.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ def stop(self):
5757

5858
def _onMessage(self, *args):
5959
""" Called when websocket message is received.
60-
In earlier releases, websocket-client returned a tuple of two parameters: a websocket.app.WebSocketApp object
61-
and the message as a STR. Current releases appear to only return the message.
60+
In earlier releases, websocket-client returned a tuple of two parameters: a websocket.app.WebSocketApp
61+
object and the message as a STR. Current releases appear to only return the message.
6262
We are assuming the last argument in the tuple is the message.
63-
This is to support compatibility with current and previous releases of websocket-client.
63+
This is to support compatibility with current and previous releases of websocket-client.
6464
"""
6565
message = args[-1]
6666
try:
@@ -73,10 +73,10 @@ def _onMessage(self, *args):
7373

7474
def _onError(self, *args): # pragma: no cover
7575
""" Called when websocket error is received.
76-
In earlier releases, websocket-client returned a tuple of two parameters: a websocket.app.WebSocketApp object
77-
and the error. Current releases appear to only return the error.
78-
We are assuming the last argument in the tuple is the message.
79-
This is to support compatibility with current and previous releases of websocket-client.
76+
In earlier releases, websocket-client returned a tuple of two parameters: a websocket.app.WebSocketApp
77+
object and the error. Current releases appear to only return the error.
78+
We are assuming the last argument in the tuple is the message.
79+
This is to support compatibility with current and previous releases of websocket-client.
8080
"""
8181
err = args[-1]
8282
log.error('AlertListener Error: %s' % err)

plexapi/base.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,6 @@ def history(self, maxresults=9999999, mindate=None):
429429
"""
430430
return self._server.history(maxresults=maxresults, mindate=mindate, ratingKey=self.ratingKey)
431431

432-
433432
# The photo tag cant be built atm. TODO
434433
# def arts(self):
435434
# part = '%s/arts' % self.key
@@ -582,7 +581,7 @@ def updateProgress(self, time, state='stopped'):
582581
time, state)
583582
self._server.query(key)
584583
self.reload()
585-
584+
586585
def updateTimeline(self, time, state='stopped', duration=None):
587586
""" Set the timeline progress for this video.
588587

0 commit comments

Comments
 (0)