04-15-2021, 10:59 PM
Unfortunately, this code is written in a way so that you don't get a stack trace. If you alter this code slightly:
137 except Exception as e:
138 print("Error: ", e)
139
140 # retry about 5 times
141 print("... trying again")
142 self.tries += 1
143 if self.tries < 5:
144 self.upload(url, fields, files)
and temporarily add
139 raise
If will stop it from retrying and dump a proper stack trace to see exactly what line is causing this error.
137 except Exception as e:
138 print("Error: ", e)
139
140 # retry about 5 times
141 print("... trying again")
142 self.tries += 1
143 if self.tries < 5:
144 self.upload(url, fields, files)
and temporarily add
139 raise
If will stop it from retrying and dump a proper stack trace to see exactly what line is causing this error.