You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/Users/colch/Work/py-word-counter/.venv/lib/python3.9/site-packages/runnel/runner.py", line 157, in consumer
await tg.cancel_scope.cancel()
File "/Users/colch/Work/py-word-counter/.venv/lib/python3.9/site-packages/anyio/_backends/_asyncio.py", line 438, in __aexit__
raise exceptions[0]
File "/Users/colch/Work/py-word-counter/.venv/lib/python3.9/site-packages/anyio/_backends/_asyncio.py", line 466, in _run_wrapped_task
await func(*args)
File "/Users/colch/Work/py-word-counter/app.py", line 26, in printer
async for order in events.records():
File "/Users/colch/Work/py-word-counter/.venv/lib/python3.9/site-packages/runnel/events.py", line 175, in iter
async for x in agen:
File "/Users/colch/Work/py-word-counter/.venv/lib/python3.9/site-packages/runnel/middleware/deserialize.py", line 11, in handler
async for x in parent:
File "/Users/colch/Work/py-word-counter/.venv/lib/python3.9/site-packages/runnel/middleware/ack.py", line 11, in handler
async for x in parent:
File "/Users/colch/Work/py-word-counter/app.py", line 17, in handler
print(x)
File "/Users/colch/Work/py-word-counter/.venv/lib/python3.9/site-packages/runnel/types.py", line 82, in __repr__
if os.environ["RUNNEL_TESTING"] == "1":
File "/usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/os.py", line 679, in __getitem__
raise KeyError(key) from None
KeyError: 'RUNNEL_TESTING'
Exporting env variable RUNNEL_TESTING fixes this, indeed. But I suppose, os.environ["RUNNEL_TESTING"] should be os.environ.get("RUNNEL_TESTING"), right?
The text was updated successfully, but these errors were encountered:
Running simple example for middlewares:
error stack
Exporting env variable
RUNNEL_TESTING
fixes this, indeed. But I suppose,os.environ["RUNNEL_TESTING"]
should beos.environ.get("RUNNEL_TESTING")
, right?The text was updated successfully, but these errors were encountered: