diff --git a/corehq/apps/app_manager/fixtures/mobile_ucr.py b/corehq/apps/app_manager/fixtures/mobile_ucr.py index 974d60261b24..7268dfa3383e 100644 --- a/corehq/apps/app_manager/fixtures/mobile_ucr.py +++ b/corehq/apps/app_manager/fixtures/mobile_ucr.py @@ -111,10 +111,10 @@ def __call__(self, restore_state): for provider in providers: try: fixtures.extend(provider(restore_state, restore_user, needed_versions, report_configs)) - row_count = provider.row_count + self.report_ucr_row_count(provider.row_count, provider.version, restore_user.domain) except MobileUCRTooLargeException as err: - row_count = err.row_count - self.report_ucr_row_count(row_count, provider.version, restore_user.domain) + self.report_ucr_row_count(err.row_count, provider.version, restore_user.domain) + raise return fixtures