예제 #1
0
파일: storage.py 프로젝트: pyzh/neoppod
 def check():
     r = app.dm.checkTIDRange(*args)
     try:
         conn.send(Packets.AnswerCheckTIDRange(*r), msg_id)
     except (weakref.ReferenceError, ConnectionClosed):
         pass
     yield
예제 #2
0
파일: storage.py 프로젝트: sshyran/neoppod
 def check():
     r = app.dm.checkTIDRange(*args)
     try:
         conn.send(Packets.AnswerCheckTIDRange(*r), msg_id)
     except (weakref.ReferenceError, ConnectionClosed):
         pass
     # Splitting this task would cause useless overhead. However, a
     # generator function is expected, hence the following fake yield
     # so that iteration stops immediately.
     return
     yield