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:
Tim 2015-07-17 00:31:46 +02:00
parent 96f48291e5
commit 4f00ecc070
20 changed files with 7975 additions and 94 deletions

View file

@ -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'