Exemplo n.º 1
0
 def _ensure_application(self):
     if self.app is None:
         self.app = application.Application(None, {'uri': self.base_uri},
                                            self.auth)
         try:
             self.app.get()
         except exc.MidoApiConnectionRefused:
             self.app = None
             raise
Exemplo n.º 2
0
 def _ensure_application(self):
     if self.app is None:
         self.app = application.Application(None, {'uri': self.base_uri},
                                            self.auth)
         try:
             self.app.get()
         except Exception:
             self.app = None
             raise