Skip to content

Commit

Permalink
fixing literal comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanDietzMorris committed Aug 8, 2024
1 parent 7268385 commit daa90bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Common/kgx_file_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def __determine_properties_and_types(file_path: str, required_properties: dict):
for key, value in entity.items():
if value is None:
property_type_counts[key]["None"] += 1
if key in required_properties and key is not "name":
if key in required_properties and key != "name":
print(f'WARNING: Required property ({key}) was None: {entity.items()}')
raise Exception(
f'None found as a value for a required property (property: {key}) in line {entity.items()}')
Expand Down

0 comments on commit daa90bc

Please sign in to comment.