#NEWLINE# def need_pot_file( func ) : #NEWLINE# #INDENT# @ functools . wraps ( func ) #NEWLINE# def new_func( self , * args , **kwargs ) : #NEWLINE# #INDENT# if ( not os . path . exists ( self . pot_file ) ) : #NEWLINE# #INDENT# ui . error ( 'No pot file found. Maybe no translatable strings were found?' ) #NEWLINE# return #NEWLINE# #UNINDENT# res = func ( self , * args , ** kwargs ) #NEWLINE# return res #NEWLINE# #UNINDENT# return new_func