Catch import exception before installation
from typing import Any
-import tomodachi.helpers.logging
from tomodachi.__version__ import __version__, __version_info__ # noqa
-from tomodachi.transport.amqp import amqp, amqp_publish
-from tomodachi.transport.aws_sns_sqs import aws_sns_sqs, aws_sns_sqs_publish
-from tomodachi.transport.http import http, http_error, http_static, websocket, Response as HttpResponse, HttpException
-from tomodachi.transport.schedule import schedule, heartbeat, minutely, hourly, daily, monthly
+try:
+ import tomodachi.helpers.logging
+ from tomodachi.transport.amqp import (amqp,
+ amqp_publish)
+ from tomodachi.transport.aws_sns_sqs import (aws_sns_sqs,
+ aws_sns_sqs_publish)
+ from tomodachi.transport.http import (http,
+ http_error,
+ http_static,
+ websocket,
+ HttpException,
+ Response as HttpResponse)
+ from tomodachi.transport.schedule import (schedule,
+ heartbeat,
+ minutely,
+ hourly,
+ daily,
+ monthly)
+except Exception:
+ pass
__all__ = ['service', '__version__', '__version_info__',
'amqp', 'amqp_publish',
