Skip to content

Commit

Permalink
DEP: remove 'feed' parameter deprecated code
Browse files Browse the repository at this point in the history
fixes #1446
  • Loading branch information
Sebastian Wagner committed Jun 17, 2020
1 parent 2e2b9f5 commit bab56f2
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions intelmq/lib/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -1104,12 +1104,6 @@ def __filter_empty_report(self, message: libmessage.Report):
def __add_report_fields(self, report: libmessage.Report):
if hasattr(self.parameters, 'name'):
report.add("feed.name", self.parameters.name)
if hasattr(self.parameters, 'feed'):
warnings.warn("The parameter 'feed' is deprecated and will be "
"removed in version 2.2. Use 'name' instead.",
DeprecationWarning)
if "feed.name" not in report:
report.add("feed.name", self.parameters.feed)
if hasattr(self.parameters, 'code'):
report.add("feed.code", self.parameters.code)
if hasattr(self.parameters, 'documentation'):
Expand Down

0 comments on commit bab56f2

Please sign in to comment.