- commit
- 143dc0c0e485f9f57b13885e36a47713b359394c
- parent
- 3ea11deeaaedb12e655d95585b814efbace0c95b
- Author
- Tobias Bengfort <tobias.bengfort@gmx.net>
- Date
- 2015-04-21 21:03
fail inidividual sources, not whole projects
Diffstat
| M | project_stats.py | 15 | ++++++++------- |
1 files changed, 8 insertions, 7 deletions
diff --git a/project_stats.py b/project_stats.py
@@ -370,10 +370,10 @@ def parse_args(): 370 370 371 371 def get_project(args): 372 372 key, config = args373 -1 try:374 -1 claims = ClaimsDict(KEYS)375 -1 for source in SOURCES:376 -1 if source in config:-1 373 claims = ClaimsDict(KEYS) -1 374 for source in SOURCES: -1 375 if source in config: -1 376 try: 377 377 fn = globals()['get_' + source] 378 378 if source == 'github': 379 379 data = fn( @@ -383,9 +383,10 @@ def get_project(args): 383 383 else: 384 384 data = fn(config[source]) 385 385 claims.update(data, source)386 -1 return claims387 -1 except Exception as e:388 -1 logging.error('Error while gathering stats for %s: %s', key, e)-1 386 except Exception as e: -1 387 message = 'Error while gathering stats for %s from %s: %s', -1 388 logging.error(message, key, source, e) -1 389 return claims 389 390 390 391 391 392 def get_projects(projects_config):