Skip to content

Commit

Permalink
upstream_rebuilds.py: catch AttributeError
Browse files Browse the repository at this point in the history
  • Loading branch information
rhaschke committed Nov 11, 2024
1 parent 8549c99 commit ffeeb61
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/scripts/upstream_rebuilds.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ def stamp(pkg_name):
return datetime.datetime.strptime(result["stamp"], "%Y%m%d.%H%M")
except IndexError:
return datetime.datetime.fromtimestamp(0)
except AttributeError:
print(f"AttributeError: candidate={candidate} regex={regex.pattern}")
return datetime.datetime.fromtimestamp(0)


current = stamp(pkg.name)
Expand Down

0 comments on commit ffeeb61

Please sign in to comment.