Skip to content

Commit

Permalink
Fixed class spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
tuxpoldo committed Jan 5, 2018
1 parent 616f20a commit e14f621
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions classes/storesqlite.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# -- Imports ------------------------------------------------
import os, stat, string, sqlite3, time

from classes.exceptions import DatabaseCurrupted
from classes.exceptions import DatabaseCorrupted

# -- Classes ------------------------------------------------
class StoreSQLite( object ):
Expand Down Expand Up @@ -365,7 +365,7 @@ def ftInit( self ):
return retval
except sqlite3.DatabaseError as err:
self._handle_database_corruption( err )
raise DatabaseCurrupted( 'Database error during critical operation: {} - Database will be rebuilt from scratch.'.format( err ) )
raise DatabaseCorrupted( 'Database error during critical operation: {} - Database will be rebuilt from scratch.'.format( err ) )

def ftUpdateStart( self, full ):
try:
Expand All @@ -392,7 +392,7 @@ def ftUpdateStart( self, full ):
return ( r1[0], r2[0], r3[0], )
except sqlite3.DatabaseError as err:
self._handle_database_corruption( err )
raise DatabaseCurrupted( 'Database error during critical operation: {} - Database will be rebuilt from scratch.'.format( err ) )
raise DatabaseCorrupted( 'Database error during critical operation: {} - Database will be rebuilt from scratch.'.format( err ) )

def ftUpdateEnd( self, delete ):
try:
Expand Down Expand Up @@ -421,7 +421,7 @@ def ftUpdateEnd( self, delete ):
return ( del_chn, del_shw, del_mov, cnt_chn, cnt_shw, cnt_mov, )
except sqlite3.DatabaseError as err:
self._handle_database_corruption( err )
raise DatabaseCurrupted( 'Database error during critical operation: {} - Database will be rebuilt from scratch.'.format( err ) )
raise DatabaseCorrupted( 'Database error during critical operation: {} - Database will be rebuilt from scratch.'.format( err ) )

def ftInsertFilm( self, film ):
try:
Expand Down Expand Up @@ -572,7 +572,7 @@ def ftInsertFilm( self, film ):
return ( filmid, inschn, insshw, insmov )
except sqlite3.DatabaseError as err:
self._handle_database_corruption( err )
raise DatabaseCurrupted( 'Database error during critical operation: {} - Database will be rebuilt from scratch.'.format( err ) )
raise DatabaseCorrupted( 'Database error during critical operation: {} - Database will be rebuilt from scratch.'.format( err ) )

def _handle_database_corruption( self, err ):
self.logger.error( 'Database error during critical operation: {} - Database will be rebuilt from scratch.', err )
Expand Down
2 changes: 1 addition & 1 deletion classes/updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

from operator import itemgetter
from classes.store import Store
from classes.exceptions import DatabaseCurrupted
from classes.exceptions import DatabaseCorrupted
from classes.exceptions import DatabaseLost

# -- Constants ----------------------------------------------
Expand Down

0 comments on commit e14f621

Please sign in to comment.