Changeset 87:b2ec91fd3a1d in livinglogic.python.tipimaid

Show
Ignore:
Timestamp:
02/05/09 16:56:43 (10 years ago)
Author:
Nik Tautenhahn <nik@…>
Branch:
default
Message:

move a socket.send which might possibly fail into a try:

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • liaalh_sender.py

    r86 r87  
    9797        (l, t) = (len(line), 0) 
    9898        while t < l: # it might be that only a part of line gets transmitted 
    99             t += self.s.send(line[t:]) 
    100             try: 
     99            try: 
     100                t += self.s.send(line[t:]) 
    101101                ret = self.s.recv(1024) 
    102102                if ret == "":