get_comm query doesn't return always an StdCommField
value_ = StdValue("01299:05003")
field_value = StdComm.get_std_comm(self.session, value_)
print(field_value)
part of get_comm
std_value = StdValue(comm)
std_comm = StdComm.get_std_comm_first(
self.session, std_value)
if isinstance(std_comm, StdCommFieldValue):
print(std_value, std_comm)
print(std_comm.fields)
for std_field in std_comm.fields:
self._count_taxonomies(
std_field,
STATISTICS3_COMM_TAXO_AMOUNT)
elif isinstance(std_comm, StdComm):
01299:05003 (2015-06-30 20:38:30) <StdCommRange(id=35831, as_id=175730, asn=1299, from_id=175730, from=01299:05000 (2015-01-14 00:00:00), to_id=175730, to=01299:05009 (2015-01-14 00:00:00), 2015-06-10 10:39:57, StdSource.whois, active, descr=All peers US incl:)>: [35835, 35835, 35831, 'field', 3, 0, datetime.datetime(2015, 6, 10, 10, 39, 57), 'GUESSED: Prepend three times.', False]
[35835, 35835, 35831, 'field', 3, 0, datetime.datetime(2015, 6, 10, 10, 39, 57), 'GUESSED: Prepend three times.', False]