#NEWLINE# def _get_project( self , bundle ) : #NEWLINE# #INDENT# 'Get project instance' #NEWLINE# project_name = '{}/{}' . format ( bundle . data [ 'repository' ] [ 'owner' ] [ 'name' ] , bundle . data [ 'repository' ] [ 'name' ] ) #NEWLINE# try : #NEWLINE# #INDENT# return Project . objects . get ( name = project_name , is_enabled = True , run_here = True ) #NEWLINE# #UNINDENT# except Project . DoesNotExist : #NEWLINE# #INDENT# logger . warning ( 'Project for node task not found: {}' . format ( project_name ) ) #NEWLINE# raise Http404 ( 'Project not found' )