Skip to content

Commit 5b5004a

Browse files
committed
[fix] Fixed missing return statement (mistakenly removed due to merge conflict)
1 parent a27e6a7 commit 5b5004a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pyatlan/utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ class PyAtlanThreadPoolExecutor(ThreadPoolExecutor):
491491
client = AtlanClient()
492492
493493
async def fetch_asset():
494-
loop = asyncio.get_event_loop()
494+
loop = asyncio.get_running_loop()
495495
sdk_func = partial(
496496
client.asset.get_by_guid, "ef1ffe2c-8fc9-433a-8cf8-b4583f2d2375", Table
497497
)
@@ -518,6 +518,8 @@ def _fn():
518518
var.set(value)
519519
return fn(*args, **kwargs)
520520

521+
return super().submit(_fn)
522+
521523

522524
class ExtendableEnumMeta(EnumMeta):
523525
def __init__(cls, name, bases, namespace):

0 commit comments

Comments
 (0)