Skip to content

Commit dd569cd

Browse files
committed
silence pylint warning about pika dep in tool
1 parent f4fcf13 commit dd569cd

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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)