diff options
author | Gustavo J. A. M. Carneiro <gcarneiro@src.gnome.org> | 2004-07-07 11:04:58 +0000 |
---|---|---|
committer | Gustavo J. A. M. Carneiro <gcarneiro@src.gnome.org> | 2004-07-07 11:04:58 +0000 |
commit | af9ff81d0907750b34cbf95cb4e948204da30b5b (patch) | |
tree | d0be87091f493c8e8696f5b6e11d1194eb49b4ed /gtk | |
parent | c676ae09b93bb97d4b02eb4c38ed6b8d6ae6d182 (diff) | |
download | pygtk-af9ff81d0907750b34cbf95cb4e948204da30b5b.tar.gz |
s/TypeError/ValueError/ in parse_color and Colormap.alloc_color; Fixes #144862
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gdk.override | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gdk.override b/gtk/gdk.override index a9c8a18e..e987cb46 100644 --- a/gtk/gdk.override +++ b/gtk/gdk.override @@ -535,7 +535,7 @@ _wrap_gdk_color_parse(PyObject *self, PyObject *args, PyObject *kwargs) return NULL; if (!gdk_color_parse(spec, &colour)) { - PyErr_SetString(PyExc_TypeError, + PyErr_SetString(PyExc_ValueError, "unable to parse colour specification"); return NULL; } @@ -2866,7 +2866,7 @@ _wrap_gdk_colormap_alloc_color(PyGObject *self, PyObject *args, } if (!gdk_color_parse(color_name, &colour)) { - PyErr_SetString(PyExc_TypeError, + PyErr_SetString(PyExc_ValueError, "unable to parse colour specification"); return NULL; } |