diff options
author | Barry Warsaw <barry@python.org> | 1998-10-06 18:13:20 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 1998-10-06 18:13:20 (GMT) |
commit | c4a9b3d923b7144c85e5e7420d9eaf208cc9c7d7 (patch) | |
tree | df15f9cf6cf5f5f021c6c6a750a1fd38e1f344e7 /Tools/pynche/Main.py | |
parent | b7b1cf0088f114f41ccccf98b3fb2e8ed89e674c (diff) | |
download | cpython-c4a9b3d923b7144c85e5e7420d9eaf208cc9c7d7.zip cpython-c4a9b3d923b7144c85e5e7420d9eaf208cc9c7d7.tar.gz cpython-c4a9b3d923b7144c85e5e7420d9eaf208cc9c7d7.tar.bz2 |
main(): Better recovery when bogus color given on command line
Diffstat (limited to 'Tools/pynche/Main.py')
-rw-r--r-- | Tools/pynche/Main.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Tools/pynche/Main.py b/Tools/pynche/Main.py index 700d2f9..64cd579 100644 --- a/Tools/pynche/Main.py +++ b/Tools/pynche/Main.py @@ -103,10 +103,9 @@ def main(): try: red, green, blue = ColorDB.rrggbb_to_triplet(initialcolor) except ColorDB.BadColor: - print 'Bad initial color, using default: %s' % initialcolor - initialcolor = 'grey50' try: - red, green, blue = ColorDB.rrggbb_to_triplet(initialcolor) + red, green, blue = ColorDB.rrggbb_to_triplet('#7f7f7f') + print 'Bad initial color, using gray50:', initialcolor except ColorDB.BadColor: usage(1, 'Cannot find an initial color to use') |