This commit is contained in:
Alex Root Junior 2018-11-24 22:38:02 +02:00
parent b098b06c2e
commit a09f625667

View file

@ -64,11 +64,11 @@ class CallbackData:
raise ValueError(f"Value for '{part}' is not passed!")
if not isinstance(value, str):
raise TypeError(f"Prefix must be instance of str not {type(value).__name__}")
raise TypeError(f"Value must be instance of str not {type(value).__name__}")
elif not value:
raise ValueError(f"Value for part {part} can't be empty!'")
elif self.sep in value:
raise ValueError(f"Symbol bounded as separator can't be used in values of parts")
raise ValueError(f"Symbol defined as separator can't be used in values of parts")
data.append(value)