diff --git a/nitric/resources/base.py b/nitric/resources/base.py index d0ba848..f70cb21 100644 --- a/nitric/resources/base.py +++ b/nitric/resources/base.py @@ -54,6 +54,6 @@ def make(cls: Type[T], name: str) -> T: r._reg = loop.create_task(r._register()) except RuntimeError: loop = asyncio.get_event_loop() - loop.run_until_complete(r._reg) + loop.run_until_complete(r._register()) return r