Fix import error
This commit is contained in:
parent
77e90e090f
commit
5ac30ebf6c
|
@ -10,8 +10,8 @@ from django.db.models import Sum
|
|||
from . import models
|
||||
try:
|
||||
from . import old_models
|
||||
except ModuleNotFoundError:
|
||||
logging.info('Running without old portal data...')
|
||||
except ImportError:
|
||||
print('Running without old portal data...')
|
||||
old_models = None
|
||||
|
||||
def num_months_spanned(d1, d2):
|
||||
|
|
Loading…
Reference in New Issue
Block a user