Skip to content
Snippets Groups Projects

Better error message

Merged Alexander Schlemmer requested to merge f-better-error-message into dev
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
@@ -80,7 +80,7 @@ class Identifiable():
def get_representation(self) -> str:
return sha256(Identifiable._create_hashable_string(self).encode('utf-8')).hexdigest()
@ staticmethod
@staticmethod
def _value_representation(value) -> str:
"""returns the string representation of property values to be used in the hash function
@@ -103,7 +103,7 @@ class Identifiable():
else:
raise ValueError(f"Unknown datatype of the value: {value}")
@ staticmethod
@staticmethod
def _create_hashable_string(identifiable: Identifiable) -> str:
"""
creates a string from the attributes of an identifiable that can be hashed
Loading