Skip to content

Commit

Permalink
chors: format code using black
Browse files Browse the repository at this point in the history
  • Loading branch information
eray-inuits committed Oct 18, 2024
1 parent f9e16d8 commit 60c7279
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/elody/csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def __fill_objects_from_csv(self):
options = metadata_info.get("value_options")
if options and value not in options:
raise InvalidValueException(
f"The value \"{value}\" is invalid, these are the valid values: {options}"
f'The value "{value}" is invalid, these are the valid values: {options}'
)
indexed_dict[type][id]["metadata"].append(
self._get_metadata_object(metadata_key, value)
Expand Down
2 changes: 2 additions & 0 deletions src/elody/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,11 @@ class InvalidExtensionException(Exception):
class InvalidObjectException(Exception):
pass


class InvalidValueException(Exception):
pass


class NoMediafilesException(Exception):
pass

Expand Down
3 changes: 2 additions & 1 deletion src/elody/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,8 @@ def signal_entity_deleted(mq_client, entity):
def signal_mediafiles_added_for_entity(mq_client, entity, mediafiles):
data = {"entity": entity, "mediafiles": mediafiles}
send_cloudevent(mq_client, "dams", "dams.mediafiles_added_for_entity", data)



def signal_relations_deleted_for_entity(mq_client, entity, relations):
data = {"entity": entity, "relations": relations}
send_cloudevent(mq_client, "dams", "dams.relations_deleted_for_entity", data)
Expand Down

0 comments on commit 60c7279

Please sign in to comment.