Skip to content

Commit

Permalink
Circumvent issues with regexp matching
Browse files Browse the repository at this point in the history
  • Loading branch information
iranzo committed May 3, 2018
1 parent 076903c commit 30e9751
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions stampy/plugin/feed.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,11 @@ def feeds(message=False, name=False):
# Patch RHJobs feed
if name == "RHJobs":
description = item['description']
jobid = re.search('\*\*Job ID\*\*(.*)', description).group(1).strip().replace("_", '')
url = "https://global-redhat.icims.com/jobs/%s/job?iis=A+Red+Hat+Employee&iispid=21098" % jobid
try:
jobid = re.search('\*\*Job ID\*\*(.*)', description).group(1).strip().replace("_", '')
url = "https://global-redhat.icims.com/jobs/%s/job?iis=A+Red+Hat+Employee&iispid=21098" % jobid
except:
url = None

if url and title:
dateitem = stampy.stampy.utize(dateutil.parser.parse(item["published"]))
Expand Down

0 comments on commit 30e9751

Please sign in to comment.