diff --git a/scripts/ErrorReporter/error_dialog_app.py b/scripts/ErrorReporter/error_dialog_app.py index a8e9b582f628cf535db7e6048319291a3d2dab19..70f7b129e4f3792eda65bae2f2288698fb9f630d 100644 --- a/scripts/ErrorReporter/error_dialog_app.py +++ b/scripts/ErrorReporter/error_dialog_app.py @@ -20,7 +20,6 @@ from PyQt4 import QtGui # noqa import mantid # noqa from ErrorReporter import resources # noqa -from mantid.kernel import UsageService # noqa from ErrorReporter.error_report_presenter import ErrorReporterPresenter # noqa from ErrorReporter.errorreport import CrashReportPage # noqa # Set path to look for package qt libraries @@ -31,8 +30,9 @@ if command_line_args.qtdir is not None: ) + def main(): - if not UsageService.isEnabled(): + if mantid.config['usagereports.enabled'] != '1': return int(command_line_args.exit_code) app = QtGui.QApplication(sys.argv) form = CrashReportPage(show_continue_terminate=False)