Skip to content

Commit

Permalink
parse args before loading container so there is no logging output to …
Browse files Browse the repository at this point in the history
…console before --help is print.
  • Loading branch information
mgineer85 committed Nov 1, 2024
1 parent f9fe9bc commit 5b5aa11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions node/app_minimal.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ def _fire_held(self):


def main(args=None, run: bool = True):
from .container import container

args = parser.parse_args(args) # parse here, not above because pytest system exit 2

from .container import container

try:
create_basic_folders()
except Exception as exc:
Expand Down

0 comments on commit 5b5aa11

Please sign in to comment.