#NEWLINE# def delete( self , key , recursive = False ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# if self . client . delete ( key , recursive = recursive ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# #UNINDENT# except ( etcd . EtcdNotFile , etcd . EtcdRootReadOnly , etcd . EtcdDirNotEmpty , etcd . EtcdKeyNotFound , ValueError ) as err : #NEWLINE# #INDENT# log . error ( 'etcd: {0}' . format ( err ) ) #NEWLINE# return None #NEWLINE# #UNINDENT# except MaxRetryError as err : #NEWLINE# #INDENT# log . error ( 'etcd: Could not connect to etcd server: {0}' . format ( err ) ) #NEWLINE# return None #NEWLINE# #UNINDENT# except Exception as err : #NEWLINE# #INDENT# log . error ( 'etcd: uncaught exception {0}' . format ( err ) ) #NEWLINE# raise