style: fix F812 rule (#1221)

This commit is contained in:
ReenigneArcher 2023-08-27 17:10:18 -04:00 committed by GitHub
parent bd0f1aee18
commit ec4b779ca8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -602,7 +602,7 @@ class PlexServer(PlexObject):
print("Available butler tasks:", availableTasks)
"""
validTasks = [task.name for task in self.butlerTasks()]
validTasks = [_task.name for _task in self.butlerTasks()]
if task not in validTasks:
raise BadRequest(
f'Invalid butler task: {task}. Available tasks are: {validTasks}'