Skip to content

Commit bde1fc3

Browse files
committed
Add traceback
1 parent b3f6999 commit bde1fc3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sonar/projects.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
import json
3131
import concurrent.futures
3232
from datetime import datetime
33+
import traceback
3334

3435
from typing import Optional, Union
3536
from http import HTTPStatus
@@ -1042,6 +1043,7 @@ def export(self, export_settings: types.ConfigSettings, settings_list: Optional[
10421043
json_data["settings"] = [s.to_json() for s in settings_dict.values() if with_inherited or not s.inherited and s.key != "visibility"]
10431044

10441045
except Exception as e:
1046+
traceback.print_exc()
10451047
util.handle_error(e, f"exporting {str(self)}, export of this project interrupted", catch_all=True)
10461048
json_data["error"] = f"{util.error_msg(e)} while exporting project"
10471049
log.debug("Exporting %s done, returning %s", str(self), util.json_dump(json_data))

0 commit comments

Comments
 (0)