threshold-network / merkle-distribution

Threshold Network rewards generation and distribution
https://threshold.network
1 stars 6 forks source link

Add 'try catch' statements to writing disk commands #31

Closed manumonti closed 1 year ago

manumonti commented 1 year ago

'try catch' statement will handle errors like "Directory already exists". Also, the check of mkdir is located now at the beggining of the script, reducing the probability of not being able to save the data queried to subgraph.