fdroid: don't treat MetaDataException as unknown
Up until now, if it was thrown, fdroid would crash with a full stacktrace as if the program had stopped unexpectedly. Now it just prints the metadata error, as intended.
This commit is contained in:
parent
811fcd320f
commit
9c3fd97530
4
fdroid
4
fdroid
|
@ -22,6 +22,7 @@ import sys
|
|||
import logging
|
||||
|
||||
import fdroidserver.common
|
||||
import fdroidserver.metadata
|
||||
from argparse import ArgumentError
|
||||
|
||||
commands = {
|
||||
|
@ -118,7 +119,8 @@ def main():
|
|||
try:
|
||||
mod.main()
|
||||
# These are ours, contain a proper message and are "expected"
|
||||
except fdroidserver.common.FDroidException, e:
|
||||
except (fdroidserver.common.FDroidException,
|
||||
fdroidserver.metadata.MetaDataException) as e:
|
||||
if verbose:
|
||||
raise
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue