Skip to content

Commit 3c926e3

Browse files
author
Bryan Worrell
committed
Fixed zero-length name in format field error.
1 parent 440b0c7 commit 3c926e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdv/validators/stix/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ def ts_equal(source_ts, node):
535535

536536
root = utils.get_etree_root(root)
537537
timestamp = utils.parse_timestamp(timestamp)
538-
xpath = "//*[@id='{}']".format(idref)
538+
xpath = "//*[@id='{0}']".format(idref)
539539
nodes = root.xpath(xpath, namespaces=namespaces)
540540

541541
return any(ts_equal(timestamp, node) for node in nodes)

0 commit comments

Comments
 (0)