From 5c83a40c5be862fef68d13179652e479f73b4560 Mon Sep 17 00:00:00 2001 From: Sol Jerome Date: Fri, 22 Mar 2013 17:11:12 -0500 Subject: migrate_dbstats: Fix traceback found by jonten Signed-off-by: Sol Jerome --- tools/upgrade/1.3/migrate_dbstats.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tools/upgrade/1.3/migrate_dbstats.py') diff --git a/tools/upgrade/1.3/migrate_dbstats.py b/tools/upgrade/1.3/migrate_dbstats.py index 69d9514df..cbd2a6099 100755 --- a/tools/upgrade/1.3/migrate_dbstats.py +++ b/tools/upgrade/1.3/migrate_dbstats.py @@ -246,6 +246,9 @@ def _restructure(): failures = [] int_count = legacy_models.Interaction.objects.count() + if int_count == 0: + logger.error("Found no legacy interactions") + return False int_ctr = 0 start_time = 0 for inter in BatchFetch(legacy_models.Interaction.objects.\ -- cgit v1.2.3-1-g7c22