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