Skip to content

Commit 2665a79

Browse files
Fixed bug
Because of short circuiting if `clouds` was a `tuple` this line would have failed since it wasn't a list. Also it shouldn't be checking types via `==`.
1 parent 6902a2d commit 2665a79

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ffmpeg_streaming/clouds.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ def open_from_cloud(cloud):
205205

206206
def save_to_clouds(clouds, dirname):
207207
if clouds is not None:
208-
if type(clouds) != list or type(clouds) != tuple:
208+
if not isinstance(clouds, (list, tuple)):
209209
raise TypeError('Clouds must be type of list or tuple')
210210

211211
if type(clouds) == tuple:

0 commit comments

Comments
 (0)