1
0
mirror of https://github.com/github/octodns.git synced 2024-05-11 05:55:00 +00:00

Add __main__ calls to main in cmds

This commit is contained in:
Ross McFarland
2017-05-27 14:10:32 -07:00
parent ea653c7c2a
commit 9da976122c
6 changed files with 21 additions and 0 deletions

View File

@@ -51,6 +51,7 @@ class MainThreadExecutor(object):
try:
future.set_result(func(*args, **kwargs))
except Exception as e:
# TODO: get right stacktrace here
future.set_exception(e)
return future