Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

silence pylint warning about pika dep in tool #5380

Merged
merged 2 commits into from
Oct 6, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ Changed
This functionality should never be used in production, but only in development environments or
similar when debugging code. #5199

* Silence pylint about dev/debugging utility (tools/direct_queue_publisher.py) that uses pika because kombu
doesn't support what it does. If anyone uses that utility, they have to install pika manually. #5380

Fixed
~~~~~

Expand Down
7 changes: 6 additions & 1 deletion tools/direct_queue_publisher.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@
from __future__ import absolute_import
import argparse

import pika
try:
import pika # pylint disable=import-error
except ImportError:
raise ImportError(
"Pika is not installed with StackStorm. Install it manually to use this tool."
)


def main(queue, payload):
Expand Down