Skip to content

Commit

Permalink
Fix TypeError
Browse files Browse the repository at this point in the history
  • Loading branch information
Ouziel committed Oct 10, 2024
1 parent b602cdf commit cc578f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion counterparty-core/counterpartycore/lib/api/wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def is_server_ready():
return True
except RuntimeError:
pass
if BACKEND_HEIGHT is None:
if BACKEND_HEIGHT is None or CURRENT_BLOCK_TIME is None:
return False
if util.CURRENT_BLOCK_INDEX in [BACKEND_HEIGHT, BACKEND_HEIGHT - 1]:
return True
Expand Down

0 comments on commit cc578f9

Please sign in to comment.