Compare commits

...

1 Commits

Author SHA1 Message Date
708b723f86 if user dir not ready just retry instead of bailing 2021-07-27 09:48:03 -07:00

View File

@ -2,6 +2,7 @@
import argparse import argparse
import logging import logging
import sys import sys
import time
import os import os
# external imports # external imports
@ -124,7 +125,16 @@ def main():
# TODO get decimals from token # TODO get decimals from token
balances = {} balances = {}
f = None
while f is None:
try:
f = open('{}/balances.csv'.format(user_dir, 'r')) f = open('{}/balances.csv'.format(user_dir, 'r'))
except FileNotFoundError:
print('{} not found...', user_dir)
time.sleep(30)
remove_zeros = 10 ** 6 remove_zeros = 10 ** 6
i = 0 i = 0
while True: while True: