mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-07 07:50:28 +03:00
Don't use generic Exception raises
That hides bugs, since all exceptions (including bugs that cause raises that weren't our doing) fall under the "Exception" except
This commit is contained in:
parent
b56360512c
commit
ff06694adc
5 changed files with 22 additions and 22 deletions
|
|
@ -34,7 +34,7 @@ import logging
|
|||
|
||||
import common
|
||||
import metadata
|
||||
from common import BuildException, VCSException, FDroidPopen, SilentPopen
|
||||
from common import FDroidException, BuildException, VCSException, FDroidPopen, SilentPopen
|
||||
|
||||
try:
|
||||
import paramiko
|
||||
|
|
@ -991,7 +991,7 @@ def main():
|
|||
len(app['Repo Type']) > 0 and len(app['builds']) > 0]
|
||||
|
||||
if len(apps) == 0:
|
||||
raise Exception("No apps to process.")
|
||||
raise FDroidException("No apps to process.")
|
||||
|
||||
if options.latest:
|
||||
for app in apps:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue