From a50c7ce24bc5e6f4b22cfd764e8b1f4e0b584bec Mon Sep 17 00:00:00 2001 From: Matthew Pitkin Date: Wed, 8 Aug 2018 22:52:57 +0100 Subject: [PATCH] Another PEP8 fix --- psrqpy/search.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/psrqpy/search.py b/psrqpy/search.py index fc142530..67105c32 100644 --- a/psrqpy/search.py +++ b/psrqpy/search.py @@ -398,8 +398,8 @@ def parse_query(self, requestcontent=''): # parse through BeautifulSoup try: psrsoup = BeautifulSoup(self._query_content, 'html.parser') - except: - raise Exception('Error... problem parsing catalogue with BeautifulSoup') + except RuntimeError: + raise RuntimeError('Error... problem parsing catalogue with BeautifulSoup') pretags = psrsoup.find_all('pre') # get any
 html tags