Sikerdebaard / coronacheck-tools

Unofficial tool to verify, encode and decode the domestic QR code from CoronaCheck.nl. Not affiliated with CoronaCheck.nl or Ministry of VWS.
MIT License
37 stars 9 forks source link

ValueError invalid literal for int() with base 10: '' #5

Closed azizahmed45 closed 3 years ago

azizahmed45 commented 3 years ago

ValueError

invalid literal for int() with base 10: ''

  at c:\users\aziz\appdata\local\programs\python\python39\lib\site-packages\coronacheck_tools\verification\mobilecore.py:59 in _ensureconfig
      55│     timestamp_file = confdir / 'timestamp'
      56│
      57│     if timestamp_file.exists():
      58│         with open(timestamp_file, 'r') as fh:
    → 59│             timestamp = datetime.utcfromtimestamp(int(fh.read()))
      60│
      61│         now = datetime.utcnow()
      62│         if timestamp >= now - timedelta(hours=24):
      63│             # no need to refresh the config
Sikerdebaard commented 3 years ago

I've released a new version that should fix this issue on Windows. Please upgrade by running pip install --upgrade coronacheck-tools.