コード例 #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