Skip to content

Commit

Permalink
Another PEP8 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mattpitkin committed Aug 10, 2018
1 parent 429ec51 commit a50c7ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions psrqpy/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 <pre> html tags

Expand Down

0 comments on commit a50c7ce

Please sign in to comment.