Пример #1
0
 def addData(source):
     try:
         trig = (yield fetch(source)).body
     except AttributeError:
         print vars()
         raise
     try:
         g.addN(parseTrig(trig))
     except Exception:
         import traceback
         print "fetching %s:" % source
         traceback.print_exc()
Пример #2
0
 def addData(source):
     try:
         trig = (yield fetch(source)).body
     except AttributeError:
         print vars()
         raise
     try:
         g.addN(parseTrig(trig))
     except Exception:
         import traceback
         print "fetching %s:" % source
         traceback.print_exc()
Пример #3
0
 def done(trig, uri):
     g.addN(parseTrig(trig))
     print "%s done in %.02fms" % (uri, 1000 * (time.time() - startTime))