mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 22:42:29 +03:00
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
1 changed files with 3 additions and 1 deletions
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…
Add table
Add a link
Reference in a new issue