Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get trx state error condition #2

Merged
merged 3 commits into from
Feb 21, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Use first form of range() function
  • Loading branch information
praxiscode committed Jan 17, 2019
commit 4adafb642618c444f574fd40b402311de6820f9c
2 changes: 1 addition & 1 deletion pyfldigi/client/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ def get_trx_state(self, suppress_errors=False):
>>> fldigi.get_trx_state()
'RX'
'''
for tries in range(0, 3): # retry up to 3 times.
for tries in range(3): # retry up to 3 times.
try:
state = str(self.client.main.get_trx_status()).upper()
except Exception as e:
Expand Down