mhajiloo / persiantools

Jalali date and datetime with other tools
MIT License
69 stars 5 forks source link

It should be TypeError not ValueError #12

Open GreatBahram opened 5 years ago

GreatBahram commented 5 years ago

https://github.com/mhajiloo/persiantools/blob/a88112b5955cb8214e84467357bee61cc01242ba/persiantools/utils.py#L7

I think the message should be better than this, since we don't have string type in python. something like "string must be str, not {}".format(string.__class__.__name__)