Exemple #1
0
 def check():
     r = app.dm.checkTIDRange(*args)
     try:
         conn.send(Packets.AnswerCheckTIDRange(*r), msg_id)
     except (weakref.ReferenceError, ConnectionClosed):
         pass
     yield
Exemple #2
0
 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