git » galala » commit 5cf49f5

Make clearer that an empty album shortname skips it's creation

author Rodrigo Campos
2013-08-10 11:50:32 UTC
committer Rodrigo Campos
2013-08-10 16:10:45 UTC
parent 4d8f4204dd14c8a94c15557783740795a2b376fb

Make clearer that an empty album shortname skips it's creation

Some not so bright users, as me, will need to check the code to see how to stop
the infinite loop. This patch just adds a hint so they realize easily :-)

Signed-off-by: Rodrigo Campos <rodrigo@sdfg.com.ar>

galala +1 -1

diff --git a/galala b/galala
index 928713c..bfcb33d 100755
--- a/galala
+++ b/galala
@@ -108,7 +108,7 @@ def new_page(path):
 
 def add_albums(page):
     while True:
-        shortname = raw_input("Album shortname: ")
+        shortname = raw_input("Album shortname (empty to skip): ")
         if not shortname:
             break
         if not re.match("^[a-zA-Z0-9_-]+$", shortname):