Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion e4e_data_management/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
from pathlib import Path
from typing import Callable, List, Optional, TypeVar

from wakepy import keep
Comment thread
ntlhui marked this conversation as resolved.

from e4e_data_management import __version__
from e4e_data_management.core import DataManager
from e4e_data_management.metadata import Metadata
Expand Down Expand Up @@ -280,7 +282,8 @@ def main(self):
arg_fn = args.func
arg_dict.pop('func')

arg_fn(**arg_dict)
with keep.running():
arg_fn(**arg_dict)
except Exception as exc:
self._log.exception('Exception during main execution')
raise exc
Expand Down
31 changes: 30 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ readme = "README.md"
python = "^3.11"
schema = "^0.7.7"
appdirs = "^1.4.4"
wakepy = "^0.10.1"


[tool.poetry.group.dev.dependencies]
Expand Down