Skip to content

Commit

Permalink
fix: fixed lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
muhammadadeeltajamul committed Sep 16, 2024
1 parent ded9b1d commit 9cc6e34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions edx_ace/tests/utils/test_signals.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from django.test import TestCase
from edx_ace.utils.signals import make_serializable_object


class TestMakeSerializableObject(TestCase):
def test_primitive_types(self):
self.assertEqual(make_serializable_object(42), 42)
Expand Down
2 changes: 1 addition & 1 deletion edx_ace/utils/signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def make_serializable_object(obj):
return {key: make_serializable_object(value) for key, value in obj.items()}
elif isinstance(obj, list):
return [make_serializable_object(element) for element in obj]
except: # pylint: disable=bare-except
except Exception: # pylint: disable=broad-except
pass

Check warning on line 20 in edx_ace/utils/signals.py

View check run for this annotation

Codecov / codecov/patch

edx_ace/utils/signals.py#L19-L20

Added lines #L19 - L20 were not covered by tests
return str(obj)

Expand Down

0 comments on commit 9cc6e34

Please sign in to comment.