mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-06 23:40:29 +03:00
vcs_* stuff should not raise BuildExceptions
This commit is contained in:
parent
ee99d55e30
commit
d9d5f30d7b
2 changed files with 3 additions and 12 deletions
|
|
@ -32,7 +32,7 @@ import logging
|
|||
|
||||
import common
|
||||
import metadata
|
||||
from common import BuildException, VCSException
|
||||
from common import VCSException
|
||||
from metadata import MetaDataException
|
||||
|
||||
|
||||
|
|
@ -156,9 +156,6 @@ def check_tags(app, pattern):
|
|||
return (hver, hcode, htag)
|
||||
return (None, "Couldn't find any version information", None)
|
||||
|
||||
except BuildException as be:
|
||||
msg = "Could not scan app {0} due to BuildException: {1}".format(app['id'], be)
|
||||
return (None, msg, None)
|
||||
except VCSException as vcse:
|
||||
msg = "VCS error while scanning app {0}: {1}".format(app['id'], vcse)
|
||||
return (None, msg, None)
|
||||
|
|
@ -235,9 +232,6 @@ def check_repomanifest(app, branch=None):
|
|||
|
||||
return (version, vercode)
|
||||
|
||||
except BuildException as be:
|
||||
msg = "Could not scan app {0} due to BuildException: {1}".format(app['id'], be)
|
||||
return (None, msg)
|
||||
except VCSException as vcse:
|
||||
msg = "VCS error while scanning app {0}: {1}".format(app['id'], vcse)
|
||||
return (None, msg)
|
||||
|
|
@ -266,9 +260,6 @@ def check_repotrunk(app, branch=None):
|
|||
|
||||
ref = vcs.getref()
|
||||
return (ref, ref)
|
||||
except BuildException as be:
|
||||
msg = "Could not scan app {0} due to BuildException: {1}".format(app['id'], be)
|
||||
return (None, msg)
|
||||
except VCSException as vcse:
|
||||
msg = "VCS error while scanning app {0}: {1}".format(app['id'], vcse)
|
||||
return (None, msg)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue