Comments (5)
If the cache.json is always present, that would make things much easier indeed.
from anitya.
If the cache.json is always present, that would make things much easier indeed.
Either way, we can look for the cache.json
file first to see if it's there. If it is, then use it. If not, fall back to the way things are currently done.
from anitya.
Implemented in https://github.com/fedora-infra/anitya/tree/gnome_cache but tbh I am not sure I like it, it seems to make the code more complex than anything.
from anitya.
Well, you could break out the part inside the try
block into a function with a name to help consolidate it -- make it easier to read:
try:
use_gnome_cache_json()
except Exception as e:
log.warning(e) # Should almost certainly log something about the exception, even if its benign.
use_gnome_regex()
from anitya.
(+1) to ralph suggestion
from anitya.
Related Issues (20)
- Chromium version check URL is no longer valid HOT 2
- Error: There's already an account associated with your email, authenticate with openid HOT 2
- Support wildcards in version filters HOT 1
- gitiles/jgit support HOT 1
- Remove/depricate drupal instances? HOT 5
- Fix user Authentication error when on localhost HOT 9
- Correctly handle uuid value returned from Fedora Account System
- Allow adding new projects just from URL
- Detecting duplicates
- docbook-xml (project 227335) regex is not returning the correct data HOT 2
- vscode showing tags that don't exist HOT 1
- Project: yubikey-manager-qt not showing newer tag 1.2.6 HOT 3
- syncplay (project 371621) needs two bad versions removed HOT 1
- Missing bugs HOT 3
- Remove the straight.plugin dependency from Anitya
- Update dev environment to Fedora 40
- Name, homepage, backend sorting is working only for the current page HOT 2
- Calendar versioning sorts dates incorrectly HOT 1
- Unable to access certain URLs for custom backend HOT 3
- `AUR` v `Arch Linux AUR` distributions. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from anitya.