Skip to content

Commit d7a546b

Browse files
committed
mol_ext no code selected output
1 parent c322a40 commit d7a546b

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

docs/source/auto.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ All the commands will be saved to history and can be viewed using the
7070
the cache directory. See ``history`` docs for more information.
7171

7272
Example for ``commands.txt`` file.
73-
==================================
73+
--------------------------------
7474

7575
This file should be a simple ``.txt`` or non executable file. Here is an
7676
example containing various examples for you to run.

src/bept/pymol/mol_ext.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ def pymol_main(output_dir: str):
5959
ticked_indices=[0],
6060
maximal_count=len(pymol_code_opts),
6161
)
62+
if not codes_selected:
63+
CONSOLE.print("No code template selected.", style="yellow")
64+
return
6265

6366
for opt in codes_selected:
6467
code = pymol_code_opts[opt]

0 commit comments

Comments
 (0)