Fixes for ruff check in mediaservers.py

This commit is contained in:
tcely 2025-05-17 10:15:30 -04:00 committed by GitHub
parent 4ead042235
commit 48c9fb1ca3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -117,9 +117,6 @@ class PlexMediaServer(MediaServer):
raise ValidationError('Plex Media Server "port" must be between 1 '
'and 65535')
options = self.object.options
if 'token' not in options:
raise ValidationError('Plex Media Server requires a "token"')
token = options['token'].strip()
if 'token' not in options:
raise ValidationError('Plex Media Server requires a "token"')
if 'libraries' not in options: