File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 5
5
except ImportError :
6
6
def eb ():
7
7
"""Placeholder function to inform the user that `click` is required."""
8
- print ("Using `eb2` requires `click` to be installed. Either use `eb` or install `click` with `pip install click`." )
9
- print ("`eb2` also uses `rich` and `rich_click` as optional dependencies for enhanced CLI experience." )
10
- print ("Exiting..." )
8
+ print ('Using `eb2` requires `click` to be installed.' )
9
+ print ('Either use `eb` or install `click` with `pip install click`.' )
10
+ print ('`eb2` also uses `rich` and `rich_click` as optional dependencies for enhanced CLI experience.' )
11
+ print ('Exiting...' )
11
12
sys .exit (0 )
12
13
else :
13
14
try :
Original file line number Diff line number Diff line change @@ -809,6 +809,7 @@ def main_with_hooks(args=None):
809
809
except EasyBuildError as err :
810
810
print_error (err .msg , exit_code = err .exit_code )
811
811
else :
812
+ # Avoid running double initialization in `main` afterward if `prepare_main` succeeded
812
813
args = None
813
814
814
815
hooks = load_hooks (eb_go .options .hooks )
You can’t perform that action at this time.
0 commit comments