Skip to content

Commit c8554e7

Browse files
committed
fix: safeguard for string splitting; Fixes #47
1 parent cc0cbd2 commit c8554e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/dfd_extraction.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ def overwrite_port(microservices: dict) -> dict:
219219
if prop[0] == "port":
220220
port = None
221221
if isinstance(prop[1], str):
222-
if "port" in prop[1].casefold():
222+
if "port" in prop[1].casefold() and ":" in prop[1]:
223223
port = prop[1].split(":")[1].strip("}")
224224
else:
225225
port = int(prop[1].strip())

0 commit comments

Comments
 (0)