Skip to content

Commit 045afae

Browse files
authored
Merge pull request #2591 from certtools/asn-print
asn lookup db update: print urls only in verbose
2 parents 45155b7 + 84f2839 commit 045afae

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Please refer to the [NEWS](NEWS.md) for a list of changes which have an affect o
2727
#### Parsers
2828

2929
#### Experts
30+
- `intelmq.bots.experts.asn_lookup.expert`: Print URLs to stdout only in verbose mode (PR#2591 by Sebastian Wagner).
3031

3132
#### Outputs
3233

intelmq/bots/experts/asn_lookup/expert.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,8 @@ def update_database(cls, verbose=False):
133133
pattern = re.compile(r"href=\"(rib\.\d{8}\.\d{4}\.bz2)\"")
134134
days = pattern.findall(response.text)
135135
days.sort(reverse=True)
136-
print(url)
136+
if verbose:
137+
print(url)
137138
if days:
138139
break
139140

0 commit comments

Comments
 (0)