Skip to content

Commit

Permalink
chore: format serializer
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohamed-Hacene committed Dec 3, 2024
1 parent 6d733ab commit 2023fd5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/ebios_rm/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ def create(self, validated_data):
)
except (StoredLibrary.DoesNotExist, RiskMatrix.DoesNotExist) as e:
logging.error(f"Error loading risk matrix: {str(e)}")
raise serializers.ValidationError("An error occurred while loading the risk matrix.")
raise serializers.ValidationError(
"An error occurred while loading the risk matrix."
)
return super().create(validated_data)

class Meta:
Expand Down

0 comments on commit 2023fd5

Please sign in to comment.