Skip to content

Commit 945f14f

Browse files
committed
is instead of == None
correction found in Flake test
1 parent ecefdbb commit 945f14f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plexapi/video.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def optimize(self, title=None, target="", targetTagID=None, locationID=-1, polic
158158
tagKeys = ["Mobile", "TV", "Original Quality"]
159159
tagIDs = tagKeys + tagValues
160160

161-
if targetTagID not in tagIDs and (deviceProfile == None or videoQuality == None):
161+
if targetTagID not in tagIDs and (deviceProfile is None or videoQuality is None):
162162
raise BadRequest('Unexpected or missing quality profile.')
163163

164164
if isinstance(targetTagID, str):

0 commit comments

Comments
 (0)