Skip to content

Commit 245ef63

Browse files
authored
Merge pull request #5380 from st2sandbox/drop-pika
silence pylint warning about pika dep in tool
2 parents f4fcf13 + fbf11e3 commit 245ef63

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

CHANGELOG.rst

+3
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ Changed
7171
This functionality should never be used in production, but only in development environments or
7272
similar when debugging code. #5199
7373

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

tools/direct_queue_publisher.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,12 @@
1818
from __future__ import absolute_import
1919
import argparse
2020

21-
import pika
21+
try:
22+
import pika # pylint disable=import-error
23+
except ImportError:
24+
raise ImportError(
25+
"Pika is not installed with StackStorm. Install it manually to use this tool."
26+
)
2227

2328

2429
def main(queue, payload):

0 commit comments

Comments
 (0)