chiark / gitweb /
checkupdates: avoid crash with --auto and None CVC
authorDaniel Martí <mvdan@mvdan.cc>
Mon, 26 Sep 2016 20:07:55 +0000 (21:07 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Mon, 26 Sep 2016 20:07:55 +0000 (21:07 +0100)
commitbcd31401ac03a79abc1c6f2561afd08b77ac1bb0
treea0d566171ad51410d57d4d24e339e77311d5fbd5
parent7cbdaedf2e229b089cc1353d3b8b49eea003501e
checkupdates: avoid crash with --auto and None CVC

Reproducible via `fdroid checkupdates --auto subreddit.android.appstore`
at fdroiddata HEAD (e76449ab).

WARNING: ...subreddit.android.appstore : Couldn't find package ID
CRITICAL: Unknown exception found!
Traceback (most recent call last):
  File "/home/mvdan/.bin/fdroid", line 147, in <module>
    main()
  File "/home/mvdan/.bin/fdroid", line 124, in main
    mod.main()
  File "/home/mvdan/git/fsr/fdroidserver/checkupdates.py", line 571, in main
    checkupdates_app(app)
  File "/home/mvdan/git/fsr/fdroidserver/checkupdates.py", line 469, in checkupdates_app
    if int(build.vercode) >= int(app.CurrentVersionCode):
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'
fdroidserver/checkupdates.py