X-Git-Url: https://harishankar.org/repos/?p=getaclue.git;a=blobdiff_plain;f=crosswordpuzzlecreator.py;h=baeccc58b86ca5565e1ec678198be1fa0d440029;hp=334895ddd459d2d548d66f5227bae8bba22c4cf0;hb=HEAD;hpb=ed2b699c63f1dd0005366ce7fb84f9c39a7bd27a diff --git a/crosswordpuzzlecreator.py b/crosswordpuzzlecreator.py index 334895d..baeccc5 100644 --- a/crosswordpuzzlecreator.py +++ b/crosswordpuzzlecreator.py @@ -235,6 +235,8 @@ class CrosswordPuzzleCreator: sys.stderr.write ("Word intersects badly with another word!\n") except crosswordpuzzle.FrozenGridException: sys.stderr.write ("Word cannot be added to a frozen puzzle.\n") + except crosswordpuzzle.WordCharsException: + sys.stderr.write ("Non-word characters in word. Cannot add.\n") # Export to image/HTML def on_export_image (self, solution=True):