Skip to content

Commit

Permalink
Bug Fixes (#547)
Browse files Browse the repository at this point in the history
* changed bcrypt to python3-bcrypt

* bugfix for pre existing internet check

* change insecure flask caching version in accordance with pyupdev

* revert flask caching version back
  • Loading branch information
adamsclafani authored May 18, 2021
1 parent 2785a32 commit aa7ac11
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion install.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ def is_enabled(self):

class WebappSetup(Setup):
packages = (
'bcrypt',
'python3-bcrypt',
'libffi-dev',
'libssl-dev',
'libjpeg-dev',
Expand Down
2 changes: 1 addition & 1 deletion opwen_email_client/util/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
def check_connection(hostname: str, port: int) -> bool:
try:
host = gethostbyname(hostname)
with create_connection((host, 80)):
with create_connection((host, port)):
return True
except OSError:
pass
Expand Down
2 changes: 1 addition & 1 deletion opwen_email_client/webapp/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def sync(*args, **kwargs):
user_store=webapp.ioc.user_store,
)

if check_connection(AppConfig.STORAGE_ACCOUNT_HOST, 80):
if check_connection(AppConfig.EMAIL_SERVER_HOSTNAME, 80):
sync_emails()
else:
start_internet_connection = StartInternetConnection(
Expand Down

0 comments on commit aa7ac11

Please sign in to comment.