#NEWLINE# def custom_error( self , e ) : #NEWLINE# #INDENT# import traceback #NEWLINE# try : #NEWLINE# #INDENT# dv = get_docker ( _exit = False , verbose = False ) . client . version ( ) . get ( 'Version' ) #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# dv = None #NEWLINE# #UNINDENT# keen_client . send ( 'cli_exception' , dict ( cmd = dv . args . command , exception = repr ( e ) , stackhut_version = __version__ , docker_version = dv , os = sys . platform , python_version = sys . version , traceback = traceback . format_exc ( ) ) ) #NEWLINE# utils . log . info ( ':( If this reoccurs please open an issue at https://github.com/stackhut/stackhut or email toolkit@stackhut.com - thanks!' )