Skip to content

Commit

Permalink
JW|KJ: Report SAV export exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
moshthepitt committed Feb 5, 2018
1 parent 96e0b09 commit ef86991
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions onadata/libs/utils/export_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import math
import os
import re
import sys
import time
from datetime import datetime
from datetime import timedelta
Expand All @@ -29,7 +30,7 @@
from onadata.libs.exceptions import J2XException, NoRecordsFoundError
from onadata.libs.utils.common_tags import (DATAVIEW_EXPORT,
GROUPNAME_REMOVED_FLAG)
from onadata.libs.utils.common_tools import str_to_bool
from onadata.libs.utils.common_tools import str_to_bool, report_exception
from onadata.libs.utils.export_builder import ExportBuilder
from onadata.libs.utils.model_tools import (get_columns_with_hxl,
queryset_iterator)
Expand Down Expand Up @@ -233,7 +234,7 @@ def generate_export(export_type, xform, export_id=None, options=None,
export.error_message = str(e)
export.internal_status = Export.FAILED
export.save()

report_exception("SAV Export Failure", e, sys.exc_info())
return export

# generate filename
Expand Down

0 comments on commit ef86991

Please sign in to comment.