This commit is contained in:
Matt Venn
2023-05-25 13:55:54 +02:00
parent c8a0fcfe6b
commit 02e5cc1ae2
3 changed files with 5 additions and 4 deletions
+2 -2
View File
@@ -24,7 +24,7 @@ class Orders():
try:
with open(self.config['extra_projects']) as fh:
config = yaml.safe_load(fh)
except FileNotFoundError as e:
except FileNotFoundError:
config = []
config.append({'project': {'url' : git_url, 'timestamp' : time.time()}})
@@ -75,7 +75,7 @@ class Orders():
while after_open_date:
refunds = stripe.Refund.list(limit=10, starting_after=start_id)
for refund in refunds:
for refund in refunds:
created = datetime.fromtimestamp(refund['created'])
if created < self.open_date:
after_open_date = False