A new first run setup wizard (WIP)
Move all user related links to use user_id instead of username. Remove excess debug loggin. Catch more exceptions on PW importer.
This commit is contained in:
@@ -206,6 +206,9 @@ def validate_database(database=None, table_name=None):
|
||||
except ValueError:
|
||||
logger.error('PlexPy Importer :: Invalid database specified.')
|
||||
return 'Invalid database specified.'
|
||||
except:
|
||||
logger.error('PlexPy Importer :: Uncaught exception.')
|
||||
return 'Uncaught exception.'
|
||||
|
||||
try:
|
||||
connection.execute('SELECT ratingKey from %s' % table_name)
|
||||
@@ -213,6 +216,9 @@ def validate_database(database=None, table_name=None):
|
||||
except sqlite3.OperationalError:
|
||||
logger.error('PlexPy Importer :: Invalid database specified.')
|
||||
return 'Invalid database specified.'
|
||||
except:
|
||||
logger.error('PlexPy Importer :: Uncaught exception.')
|
||||
return 'Uncaught exception.'
|
||||
|
||||
return 'success'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user