clarify try-except for sha/hashlib