panzi / verify-ehc

Simple Python script to decode and verify an European Health Certificate QR-code
60 stars 17 forks source link

Safeguard the base45 decoding #2

Closed Cqoicebordel closed 3 years ago

Cqoicebordel commented 3 years ago

It took me longer than I could admit without being ashamed that I needed to use single quotes to decode the base45 string I had. I always had "ValueError" from the base45 module.
So, I'm proposing a solution that will capture all raised ValueError from base45 decoding, and display a message to hint in the right direction.

I know it might not be the ideal solution. I'm just proposing here :)