def exec_build(self, plugin): try: b = Build(self._config) b.build_project() except: raise if plugin: try: plugin.after_build() except AttributeError: pass print 'Successfully built the project.'