Changeset 70508 in vbox for trunk/src/VBox/ValidationKit/testdriver/reporter.py
- Timestamp:
- Jan 10, 2018 11:21:09 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testdriver/reporter.py
r69444 r70508 432 432 """Ends and completes the log files.""" 433 433 try: sTsIso = self.fnGetIsoTimestamp(); 434 except Exception ,oXcpt:434 except Exception as oXcpt: 435 435 sTsIso = str(oXcpt); 436 436 … … 522 522 try: 523 523 oDstFile = utils.openNoInherit(sDstFilename, 'w'); 524 except Exception ,oXcpt:524 except Exception as oXcpt: 525 525 self.log(0, 'error opening %s: %s' % (sDstFilename, oXcpt), sCaller, sTsPrf); 526 526 else: … … 528 528 try: 529 529 abBuf = oSrcFile.read(65536); 530 except Exception ,oXcpt:530 except Exception as oXcpt: 531 531 fRc = False; 532 532 self.log(0, 'error reading %s: %s' % (sSrcFilename, oXcpt), sCaller, sTsPrf); … … 534 534 try: 535 535 oDstFile.write(abBuf); 536 except Exception ,oXcpt:536 except Exception as oXcpt: 537 537 fRc = False; 538 538 self.log(0, 'error writing %s: %s' % (sDstFilename, oXcpt), sCaller, sTsPrf); … … 562 562 try: 563 563 oDstFile = utils.openNoInherit(sDstFilename, 'w'); 564 except Exception ,oXcpt:564 except Exception as oXcpt: 565 565 self.log(0, 'error opening %s: %s' % (sDstFilename, oXcpt), sCaller, sTsPrf); 566 566 else: 567 567 try: 568 568 oDstFile.write(sLog); 569 except Exception ,oXcpt:569 except Exception as oXcpt: 570 570 fRc = False; 571 571 self.log(0, 'error writing %s: %s' % (sDstFilename, oXcpt), sCaller, sTsPrf); … … 719 719 try: 720 720 sRspBody = oResponse.read(); 721 except httplib.IncompleteRead ,oXcpt:721 except httplib.IncompleteRead as oXcpt: 722 722 self._writeOutput('%s: %s: Warning: httplib.IncompleteRead: %s [expected %s, got %s]' 723 723 % (utils.getTimePrefix(), sOperation, oXcpt, oXcpt.expected, len(oXcpt.partial),)); … … 861 861 self._writeOutput('_xmlDoFlush: Failed - we should abort the test, really.'); 862 862 return (None, True); 863 except Exception ,oXcpt:863 except Exception as oXcpt: 864 864 if not fDtor: 865 865 logXcpt('warning: exception during XML_RESULTS request'); … … 1423 1423 try: 1424 1424 oSrcFile = utils.openNoInherit(sFilename, 'rb'); 1425 except IOError ,oXcpt:1425 except IOError as oXcpt: 1426 1426 if oXcpt.errno != errno.ENOENT: 1427 1427 logXcpt('addLogFile(%s,%s,%s)' % (sFilename, sDescription, sKind)); … … 1624 1624 try: 1625 1625 oSrcFile = utils.openNoInherit(sFilename, 'r'); 1626 except IOError ,oXcpt:1626 except IOError as oXcpt: 1627 1627 if oXcpt.errno != errno.ENOENT: 1628 1628 logXcpt('addSubXmlFile(%s)' % (sFilename,));
Note:
See TracChangeset
for help on using the changeset viewer.