VirtualBox

Ignore:
Timestamp:
May 27, 2016 1:16:02 AM (9 years ago)
Author:
vboxsync
Message:

testmanager: failiure reason fixes, some exception throwing cleanups, delinting with pylint 1.5.5.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testmanager/core/testboxstatus.py

    r56295 r61220  
    3434
    3535# Validation Kit imports.
    36 from testmanager.core.base      import ModelDataBase, ModelDataBaseTestCase, ModelLogicBase, TMExceptionBase;
     36from testmanager.core.base      import ModelDataBase, ModelDataBaseTestCase, ModelLogicBase, TMTooManyRows, TMRowNotFound;
    3737from testmanager.core.testbox   import TestBoxData;
    3838
     
    9292
    9393        if aoRow is None:
    94             raise TMExceptionBase('TestBoxStatus not found.');
     94            raise TMRowNotFound('TestBoxStatus not found.');
    9595
    9696        self.idTestBox           = aoRow[0];
     
    175175        if cRows != 1:
    176176            if cRows != 0:
    177                 raise TMExceptionBase('tryFetchStatusForCommandReq got %s rows for idTestBox=%s' % (cRows, idTestBox));
     177                raise TMTooManyRows('tryFetchStatusForCommandReq got %s rows for idTestBox=%s' % (cRows, idTestBox));
    178178            return (None, None);
    179179        aoRow = self._oDb.fetchOne();
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette