CC-2954: Exception in media monitor using Dropbox
-Need to check if size is >=2, not 3.
This commit is contained in:
parent
9448728d63
commit
b33ced99c8
|
@ -29,7 +29,7 @@ class MediaMonitorCommon:
|
|||
|
||||
# if file doesn't have any extension, info[-2] throws exception
|
||||
# Hence, checking length of info before we do anything
|
||||
if(len(info) >= 3):
|
||||
if(len(info) >= 2):
|
||||
if(info[-2] in self.supported_file_formats):
|
||||
return True
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue