We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2d76aa commit 63e3cf1Copy full SHA for 63e3cf1
tests/acceptance/subscribe/environment.py
@@ -1,8 +1,10 @@
1
import asyncio
2
import requests
3
+import logging
4
5
from behave.runner import Context
6
from io import StringIO
7
+from httpx import HTTPError
8
from pubnub.pubnub import PubNub
9
from pubnub.pnconfiguration import PNConfiguration
10
from pubnub.pubnub_asyncio import SubscribeCallback
@@ -51,6 +53,10 @@ def after_scenario(context: Context, feature):
51
53
loop.run_until_complete(task)
52
54
except asyncio.CancelledError:
55
pass
56
+ except HTTPError as e:
57
+ logger = logging.getLogger("pubnub")
58
+ logger.error(f"HTTPError: {e}")
59
+
60
loop.run_until_complete(asyncio.sleep(1.5))
61
del context.pubnub
62
0 commit comments