Commit 2cdc20b0 authored by Joel Collins's avatar Joel Collins
Browse files

Handle empty or malformed capture list

parent ebce044f
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -251,6 +251,7 @@ class BaseCamera(object):
            # Create capture object list, and validate captures
            capture_list = []

            if capture_dict_list:
                for capture_dict in capture_dict_list:
                    if 'path' in capture_dict and os.path.isfile(capture_dict['path']):
                        capture_list.append(capture_from_dict(capture_dict))