Skip to content

Commit

Permalink
Merge pull request #59 from andrew-hossack/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
andrew-hossack committed Aug 30, 2022
2 parents 31c5157 + 5da1a8b commit 9eb6ee4
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 9 deletions.
9 changes: 4 additions & 5 deletions dashtools/deploy/herokuUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,14 @@ def check_heroku_app_name_available(heroku_app_name: str) -> bool:
True if available
False if not
"""
try:
requests.get(
response = requests.get(
url=f'https://{heroku_app_name}.herokuapp.com/',
headers={'User-Agent': 'Custom'}
)
return False
except requests.exceptions.ConnectionError as e:
if response.status_code == 404:
return True

else:
return False

def create_app_on_heroku(app_name: str) -> bool:
"""
Expand Down
2 changes: 1 addition & 1 deletion dashtools/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.8.2'
__version__ = '1.8.3'
6 changes: 6 additions & 0 deletions docs/source/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

All notable changes to this project will be documented in this file.

## [1.8.3] - 2022-08-29

### Fixed

- Changed heroku app name verification again. Heroku sends back a 404 if no app name is in use. Thanks @lanchuhuong!

## [1.8.2] - 2022-08-12

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion docs/source/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Version in this file must match version for dashtools/version.py!

__version__ = '1.8.2'
__version__ = '1.8.3'
3 changes: 1 addition & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ dash-bootstrap-components
Flask
gunicorn
packaging==21.0
setuptools==47.1.0
pipreqs==0.4.11
pre-commit==2.16.0
pytest==6.2.2
pandas
yolk3k==0.9
termcolor==1.1.0
termcolor==1.1.0

0 comments on commit 9eb6ee4

Please sign in to comment.