Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
fzumstein committed Aug 29, 2023
1 parent 5cfe8ba commit e7f7dcd
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions xlwings/udfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,16 @@ async def async_thread(base, my_has_dynamic_array, func, args, cache_key, expand
except: # noqa: E722
exception(logger, "async_thread failed")

async def async_thread_nocaller(func, args,):

async def async_thread_nocaller(
func,
args,
):
try:
loop = asyncio.get_running_loop()
await loop.run_in_executor(
com_executor, functools.partial(func, *args)
)
await loop.run_in_executor(com_executor, functools.partial(func, *args))

except:
except: # noqa: E722
exception(logger, "async_thread failed")


Expand Down

0 comments on commit e7f7dcd

Please sign in to comment.