Changeset ce79a9e for python


Ignore:
Timestamp:
Mar 10, 2017, 8:32:47 PM (8 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, sampler
Children:
1013c5d
Parents:
d0f0d55
Message:

python/lib/gen_code.py: show which failed before raising exception

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/lib/gen_code.py

    rd0f0d55 rce79a9e  
    184184    def gen_code(self):
    185185        out = ""
    186         out += self.gen_struct()
    187         out += self.gen_doc()
    188         out += self.gen_new()
    189         out += self.gen_init()
    190         out += self.gen_del()
    191         out += self.gen_do()
    192         out += self.gen_memberdef()
    193         out += self.gen_set()
    194         out += self.gen_get()
    195         out += self.gen_methodef()
    196         out += self.gen_typeobject()
     186        try:
     187            out += self.gen_struct()
     188            out += self.gen_doc()
     189            out += self.gen_new()
     190            out += self.gen_init()
     191            out += self.gen_del()
     192            out += self.gen_do()
     193            out += self.gen_memberdef()
     194            out += self.gen_set()
     195            out += self.gen_get()
     196            out += self.gen_methodef()
     197            out += self.gen_typeobject()
     198        except Exception as e:
     199            print ("Failed generating code for", self.shortname)
     200            raise
    197201        return out
    198202
Note: See TracChangeset for help on using the changeset viewer.