d/control: add python3-debianbts dep, remove runtime check

Signed-off-by: Dan Streetman <ddstreet@canonical.com>
This commit is contained in:
Dan Streetman 2021-01-25 09:25:22 -05:00
parent 52739e44ad
commit f2118d6e7f
2 changed files with 2 additions and 6 deletions

1
debian/control vendored
View File

@ -47,6 +47,7 @@ Depends:
python3, python3,
python3-apt, python3-apt,
python3-debian, python3-debian,
python3-debianbts,
python3-distro-info, python3-distro-info,
python3-httplib2, python3-httplib2,
python3-launchpadlib, python3-launchpadlib,

View File

@ -22,6 +22,7 @@
# ################################################################## # ##################################################################
import argparse import argparse
import debianbts
import logging import logging
import re import re
import sys import sys
@ -34,12 +35,6 @@ from ubuntutools.config import UDTConfig
from ubuntutools import getLogger from ubuntutools import getLogger
Logger = getLogger(__name__) Logger = getLogger(__name__)
try:
import debianbts
except ImportError:
Logger.error("Please install 'python3-debianbts' in order to use this utility.")
sys.exit(1)
def main(): def main():
bug_re = re.compile(r"bug=(\d+)") bug_re = re.compile(r"bug=(\d+)")