Skip to content

Commit 9de844f

Browse files
committed
Use generic Exception to catch all potential issues #792
Signed-off-by: Thomas Druez <tdruez@nexb.com>
1 parent b49b444 commit 9de844f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scanpipe/migrations/0031_scancode_toolkit_v32_data_updates.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def compute_resource_detected_license_expression(apps, schema_editor):
7474
# AttributeError: 'LicenseSymbol' object has no attribute 'wrapped'
7575
try:
7676
license_expression_spdx = build_spdx_license_expression(combined_expression)
77-
except AttributeError as error:
77+
except Exception as error:
7878
ProjectError.objects.create(
7979
project=resource.project,
8080
message=str(error),

0 commit comments

Comments
 (0)