We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d2c5d6e commit 9e94230Copy full SHA for 9e94230
1 file changed
rtrlib/rtr_manager.py
@@ -468,7 +468,7 @@ def __init__(self,
468
for record in ffi.unpack(reason_records[0], reason_len):
469
self._reason.append(Reason(prefix_length, asn, record))
470
471
- elif (not ffi.typeof(reason_records) is ffi.typeof('struct pfx_record **')):
+ elif (reason_records and not ffi.typeof(reason_records) is ffi.typeof('struct pfx_record **')):
472
raise TypeError("reason_records must be struct pfx_record **")
473
else:
474
self._reason = None
0 commit comments