From 5ac30ebf6c0ecd4a599413a638cf25a923c6f6d7 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Thu, 23 Jan 2020 07:29:38 +0000 Subject: [PATCH] Fix import error --- apiserver/apiserver/api/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apiserver/apiserver/api/utils.py b/apiserver/apiserver/api/utils.py index 909e4e9..0bf1dea 100644 --- a/apiserver/apiserver/api/utils.py +++ b/apiserver/apiserver/api/utils.py @@ -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):