#NEWLINE# def _testGetNetworkAddressCallback( self , result ) : #NEWLINE# #INDENT# if ( 'public_ip' in result ) : #NEWLINE# #INDENT# self . _checkIP ( result [ 'public_ip' ] ) #NEWLINE# #UNINDENT# if ( 'local_ip' in result ) : #NEWLINE# #INDENT# self . _checkIP ( result [ 'local_ip' ] ) #NEWLINE# #UNINDENT# if ( ( 'public_ip' not in result ) and ( 'local_ip' not in self ) ) : #NEWLINE# #INDENT# raise Exception ( 'Could not find a local or public IP.' )