Changeset 401:15ad3c16ee11 for src/mlx/update.py
- Timestamp:
- 12/27/12 08:04:59 (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/update.py
r298 r401 1 1 2 2 from config import Config 3 from util import utf2unicode 3 4 4 5 import os … … 206 207 manifest.readFrom(f) 207 208 except Exception, e: 208 print "Error reading the manifest, ignoring:", str(e)209 print "Error reading the manifest, ignoring:", utf2unicode(str(e)) 209 210 manifest = Manifest() 210 211 … … 228 229 229 230 except Exception, e: 230 print >> sys.stderr, "Error downloading manifest:", str(e) 231 listener.failed(str(e)) 231 error = utf2unicode(str(e)) 232 print >> sys.stderr, "Error downloading manifest:", error 233 listener.failed(error) 232 234 return None 233 235 finally: … … 291 293 os.rename(path, os.path.join(toremoveDir, sum.hexdigest())) 292 294 except Exception, e: 293 print "Cannot remove file " + path + ": " + str(e)295 print "Cannot remove file " + path + ": " + utf2unicode(str(e)) 294 296 295 297 #------------------------------------------------------------------------------ … … 370 372 listener.done() 371 373 except Exception, e: 372 print >> sys.stderr, "Error:", str(e) 373 listener.failed(str(e)) 374 error = utf2unicode(str(e)) 375 print >> sys.stderr, "Error:", error 376 listener.failed(error) 374 377 375 378 #------------------------------------------------------------------------------ … … 432 435 except Exception, e: 433 436 print >> sys.stderr, "Failed to parse line '%s': %s" % \ 434 (line, str(e))437 (line, utf2unicode(str(e))) 435 438 436 439 return buffer … … 488 491 489 492 except Exception, e: 490 print >> sys.stderr, "Failed updating:", str(e) 491 listener.failed(str(e)) 493 error = utf2unicode(str(e)) 494 print >> sys.stderr, "Failed updating:", error 495 listener.failed(error) 492 496 finally: 493 497 if serverSocket is not None:
Note:
See TracChangeset
for help on using the changeset viewer.