Skip to content

Commit

Permalink
Correcting typo and added vscode files to .gitignore (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
jajomi authored and billimek committed Mar 14, 2019
1 parent aa5b8a1 commit 6efd6d9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
.idea
build/
*.swp
.vscode

# Byte-compiled / optimized / DLL files
__pycache__/
Expand Down
6 changes: 3 additions & 3 deletions flow/communications/slack/slack.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,8 @@ def publish_error(sender, message, class_name, method_name):
else:
attachment.color = '#ff0000'

attachment.author_name = environment + " " + (str(app_version) if str(app_version) is not None else 'Uknown Version')
attachment.title = "Build " + (os.environ.get('BUILD_ID') if os.environ.get('BUILD_ID') is not None else 'Uknown')
attachment.author_name = environment + " " + (str(app_version) if str(app_version) is not None else 'Unknown Version')
attachment.title = "Build " + (os.environ.get('BUILD_ID') if os.environ.get('BUILD_ID') is not None else 'Unknown')
attachment.title_link = (os.environ.get('BUILD_URL') if os.environ.get('BUILD_URL') is not None else '')
attachment.footer = 'Flow'
attachment.text = message
Expand Down Expand Up @@ -392,7 +392,7 @@ def publish_custom_message(self, message, channel=None, user='Flow', icon=None,
attachment.color = '#0000ff'

attachment.author_name = app_name + ' ' + environment + " " + (str(app_version) if str(app_version) is not
None else 'Uknown Version')
None else 'Unknown Version')
if 'github' in self.config.json_config and 'org' in self.config.json_config['github']:
attachment.author_name = "{msg} \n org: {org} \n repo: {repo}".format(msg=attachment.author_name,
org=self.config.json_config['github']['org'],
Expand Down

0 comments on commit 6efd6d9

Please sign in to comment.