Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(8)  |  Call(6)  |  Derive(0)  |  Import(2)

src/p/y/PyTide-HEAD/NetworkTools/plugins/gwave.py   PyTide(Download)
            server_response = urllib.urlopen(PYTIDE_LOGIN_URL, encoded_login)            
        except IOError, e:
            raise NetworkTools.ConnectionFailure("Could not communicate with PyTide Server",
                                                 e[1])
        else:
                                        num_results=21)
        except:
            raise NetworkTools.ConnectionFailure("Connection to Google Wave failed")
            return # Why do we need to return after a raise?
        if results.num_results < 21:

src/p/y/PyTide-HEAD/NetworkTools/plugins/gwave2.py   PyTide(Download)
			self.start()
		except IOError, e:
			raise NetworkTools.ConnectionFailure("Could not communicate with PyTide Server",e[1])
 
	def process(self):

src/p/y/PyTide-HEAD/NetworkTools/plugins/__init__.py   PyTide(Download)
#           under the License.
from ..DNS.lazy import mxlookup
from NetworkTools import ConnectionFailure
__all__ = ['get_plugin', ]
 
def get_plugin(domain):
    protocol = get_protocol(domain)
    if not protocol:
        raise ConnectionFailure("Could not identify protocol")
    if protocol in protocol_mapping:
                return plugin
    # If no protocols could be found or imported:
    raise ConnectionFailure("No plugin available: protocol %s" % protocol)
 

src/p/y/PyTide-HEAD/NetworkTools/plugins/waveinabox.py   PyTide(Download)
from ..models.digest import Digest
 
from NetworkTools import ConnectionFailure
 
__all__ = ['WaveInABoxConnection']
        except IOError, e:
            print "An Error occured when connecting to %s:" % (self.domain)
            raise ConnectionFailure("Could not connect to %s:\n" % self.domain)
        else:
            print "Response recieved"