Changeset 4182

Show
Ignore:
Timestamp:
06/25/08 16:09:08 (4 months ago)
Author:
ed
Message:

Removed bare 'except:' lines.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/dabo/biz/dBizobj.py

    r4057 r4182  
    354354            try: 
    355355                self.RowNumber = current_row 
    356             except: pass 
     356            except StandardError, e: 
     357                # Need to record what sort of error could be thrown 
     358                dabo.errorLog.write(_("Failed to set RowNumber. Error: %s") % e) 
    357359 
    358360 
     
    639641            currPK = self.getPK() 
    640642            currRow = None 
    641         except
     643        except dException.dException
    642644            # No PK defined 
    643645            currPK = None 
     
    709711                try: 
    710712                    func(*args, **kwargs) 
    711                 except: 
    712                     # Reset things and bail: 
     713                except StandardError, e: 
     714                    # Reset things and bail 
     715                    dabo.errorLog.write(_("Error in scanChangedRows: %s") % e) 
    713716                    self._CurrentCursor = old_currentCursorKey 
    714717                    self._positionUsingPK(old_pk) 
    715                     raise 
     718                    raise e 
    716719 
    717720        self._CurrentCursor = old_currentCursorKey 
     
    890893        in the cursor. 
    891894        """ 
    892         try: 
    893             cc = self._CurrentCursor 
    894         except: 
    895             cc = None 
     895        cc = self._CurrentCursor 
    896896        if cc is not None: 
    897897            self._CurrentCursor.sort(col, ord, caseSensitive) 
     
    10371037        """Returns True if any record in the current record set has been changed.""" 
    10381038        if useCurrentParent is None: 
    1039             try: 
    1040                 cc = self._CurrentCursor 
    1041             except: 
    1042                 cc = None 
     1039            cc = self._CurrentCursor 
    10431040        else: 
    10441041            key = self.getParentLinkValue() 
     
    10651062        check all records. 
    10661063        """ 
    1067         try: 
    1068             cc = self._CurrentCursor 
    1069         except: 
    1070             cc = None 
     1064        cc = self._CurrentCursor 
    10711065        if cc is None: 
    10721066            # No cursor, no changes. 
     
    14051399        """ 
    14061400        ret = None 
    1407         try: 
    1408             cc = self._CurrentCursor 
    1409         except: 
    1410             cc = None 
     1401        cc = self._CurrentCursor 
    14111402        if cc is not None: 
    14121403            ret = self._CurrentCursor.getDataSet(flds, rowStart, rows) 
     
    17051696        try: 
    17061697            return self._CurrentCursor.getSQL() 
    1707         except
     1698        except AttributeError
    17081699            return None 
    17091700 
     
    19521943        try: 
    19531944            ret = self._CurrentCursor.RowCount 
    1954         except
     1945        except AttributeError
    19551946            ret = None 
    19561947        return ret 
     
    19601951        try: 
    19611952            ret = self._CurrentCursor.RowNumber 
    1962         except
     1953        except AttributeError
    19631954            ret = None 
    19641955        return ret