Skip to content

Commit

Permalink
Remove QuerySubscription from Allocation routine
Browse files Browse the repository at this point in the history
  • Loading branch information
freQniK committed Nov 6, 2024
1 parent c9ba15c commit f6e36a9
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/cli/sentinel.py
Original file line number Diff line number Diff line change
Expand Up @@ -543,15 +543,6 @@ def GetQuota(self, id):
else:
self.message = "gRPC Error!"
return

try:
subscriptions = sdk.subscriptions.QuerySubscriptionsForAccount(ADDRESS, pagination=PageRequest(limit=1000))
except (mospy.exceptions.clients.TransactionTimeout,
mospy.exceptions.clients.NodeException,
mospy.exceptions.clients.NodeTimeoutException) as e:
print(str(e))
self.message = "Error connecting to gRPC. Try again or switch gRPCs"
return

try:
allocations = sdk.subscriptions.QueryAllocations(subscription_id=int(id))
Expand Down

0 comments on commit f6e36a9

Please sign in to comment.