We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2908673 commit 12c30d3Copy full SHA for 12c30d3
1 file changed
fedcode/management/commands/tasks.py
@@ -6,6 +6,8 @@
6
# See https://github.com/nexB/federatedcode for support or download.
7
# See https://aboutcode.org for more information about AboutCode.org OSS projects.
8
#
9
+from traceback import format_exc as traceback_format_exc
10
+
11
from django.core.management.base import BaseCommand
12
from django.core.management.base import CommandError
13
@@ -29,7 +31,9 @@ def sync_task():
29
31
importer.run()
30
32
sync_r.done = True
33
except Exception as e:
- sync_r.error_message = e
34
+ sync_r.error_message = (
35
+ f"Failed to sync {sync_r.repo!r} {e!r} \n {traceback_format_exc()}"
36
+ )
37
finally:
38
sync_r.save()
39
0 commit comments