diff --git a/wx/lib/art/img2pyartprov.py b/wx/lib/art/img2pyartprov.py index a03bf691..9bc8a34c 100644 --- a/wx/lib/art/img2pyartprov.py +++ b/wx/lib/art/img2pyartprov.py @@ -37,12 +37,12 @@ class Img2PyArtProvider(wx.ArtProvider): try: self.catalog.update(imageModule.catalog) except AttributeError: - raise Exception, 'No catalog dictionary defined for the image module' + raise Exception('No catalog dictionary defined for the image module') try: self.index.extend(imageModule.index) except AttributeError: - raise Exception, 'No index list defined for the image module' + raise Exception('No index list defined for the image module') def GenerateArtIdList(self): return [self.artIdPrefix+name for name in self.index]