Skip to content

Commit

Permalink
Can I 78
Browse files Browse the repository at this point in the history
  • Loading branch information
yorickdowne committed Aug 27, 2024
1 parent bcceea5 commit c2eeae2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions ethstaker_deposit/deposit.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def check_python_version() -> None:
'''
if sys.version_info < (3, 9):
click.pause(load_text(['err_python_version']))
sys.exit()
sys.exit(78)


def check_term_encoding() -> None:
Expand All @@ -44,12 +44,12 @@ def check_term_encoding() -> None:
acceptable_encodings.append('cp1252')

if encoding not in acceptable_encodings:
print(
click.pause(
f'Your terminal is using {encoding} encoding which can present problems with passwords. '
'Please use "utf-8".'
+ (' On Windows, "cp1252" is acceptable but not recommended.' if sys.platform == 'win32' else '')
)
sys.exit()
sys.exit(78)


def check_connectivity() -> None:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_deposit.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
def test_should_notify_user_and_exit_if_invalid_python_version(monkeypatch) -> None:
exit_called = False

def _mock_sys_exit():
def _mock_sys_exit(arg):
nonlocal exit_called
exit_called = True

Expand Down

0 comments on commit c2eeae2

Please sign in to comment.