mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-14 07:04:27 -04:00
use exc
This commit is contained in:
parent
63919dc90a
commit
7e7c134ec0
1 changed files with 1 additions and 1 deletions
|
@ -1077,7 +1077,7 @@ def setup_django(out_dir: Path=None, check_db=False, config: ConfigDict=CONFIG,
|
||||||
cursor = sqlite3.connect(':memory:').cursor()
|
cursor = sqlite3.connect(':memory:').cursor()
|
||||||
cursor.execute('SELECT JSON(\'{"a": "b"}\')')
|
cursor.execute('SELECT JSON(\'{"a": "b"}\')')
|
||||||
except sqlite3.OperationalError as exc:
|
except sqlite3.OperationalError as exc:
|
||||||
stderr('[X] Your SQLite3 version is missing the required JSON1 extension', color='red')
|
stderr(f'[X] Your SQLite3 version is missing the required JSON1 extension: {exc}', color='red')
|
||||||
hint([
|
hint([
|
||||||
'Upgrade your Python version or install the extension manually:',
|
'Upgrade your Python version or install the extension manually:',
|
||||||
'https://code.djangoproject.com/wiki/JSON1Extension'
|
'https://code.djangoproject.com/wiki/JSON1Extension'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue