Skip to content

Commit bbb61ec

Browse files
author
Federico Ceratto
committed
Handle test_keys = None
1 parent b6a8f05 commit bbb61ec

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

af/fastpath/fastpath/core.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -291,8 +291,12 @@ def match_fingerprints(measurement):
291291
zzfps = fingerprints["ZZ"]
292292
ccfps = fingerprints.get(msm_cc, {})
293293

294+
test_keys = measurement["test_keys"]
295+
if test_keys is None:
296+
return []
297+
294298
matches = []
295-
for req in measurement["test_keys"].get("requests", ()):
299+
for req in test_keys.get("requests", ()):
296300
r = req.get("response", None)
297301
if r is None:
298302
continue

0 commit comments

Comments
 (0)