Skip to content

Commit

Permalink
Better error message if psycodict is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
roed314 committed May 10, 2024
1 parent b502ffd commit 4afb6c4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lmfdb/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
# -*- coding: utf-8 -*-

# psycodict was added as a dependency on May 10, 2024; we provide a useful error message for people upgrading
try:
import psycodict
except ImportError:
print('Missing dependency; try running "sage -pip install -r requirements.txt" in the LMFDB home folder.')
raise

from .lmfdb_database import db
assert db

0 comments on commit 4afb6c4

Please sign in to comment.