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 9, 2018
1 parent 0975fd9 commit 9c78966
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 9c78966

Please sign in to comment.