Skip to content

Commit 8e02abc

Browse files
committed
Fix mock assert for get_dependencies_from_properties_file
1 parent 647369d commit 8e02abc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

compilesketches/compilesketches.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -770,7 +770,9 @@ def get_dependencies_from_properties_file(self, properties_file_path):
770770
match = re.search(r"depends=(.*)", content)
771771
if match:
772772
# only works with "," (comma) deliminator
773-
dependencies = match.group(1).split(",")
773+
depends = match.group(1)
774+
if depends:
775+
dependencies = depends.split(",")
774776
return dependencies
775777

776778
def get_library_dependencies(self, library_path):

0 commit comments

Comments
 (0)