Skip to content

Commit

Permalink
change some logic
Browse files Browse the repository at this point in the history
  • Loading branch information
HayWo committed May 25, 2020
1 parent 679d1f0 commit c1c991f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions buildbot_matrix/reporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,12 +168,12 @@ def send(self, build):
else:
repository_owner = None

try:
target_url = build['url']
if (state == 'pending') and (self.onlyEndState):
log.msg('Pending message not set to matrix, as configured')
return
else:
if (state == 'pending') and (self.onlyEndState):
log.msg('Pending message not set to matrix, as configured')
return
else:
try:
target_url = build['url']
result = yield self.createStatus(
project_owner=repository_owner,
repo_name=repository_name,
Expand All @@ -189,5 +189,5 @@ def send(self, build):
log.msg('Code: {code} - Could not send Notification: {message}'.format(code=result.code, message=message))
elif self.verbose:
log.msg('Notification send to {room}'.format(room=self.room_id))
except Exception as e:
log.err(e, 'Failed to send notification to {room}'.format(room=self.room_id))
except Exception as e:
log.err(e, 'Failed to send notification to {room}'.format(room=self.room_id))
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
with open("README.md", "r") as rm:
long_description = rm.read()

VERSION = "0.0.4"
VERSION = "0.0.5"

setup(name='buildbot-matrix',
version=VERSION,
Expand Down

0 comments on commit c1c991f

Please sign in to comment.