File tree Expand file tree Collapse file tree 1 file changed +18
-3
lines changed Expand file tree Collapse file tree 1 file changed +18
-3
lines changed Original file line number Diff line number Diff line change @@ -213,7 +213,10 @@ def get_active_date(repo):
213
213
"""
214
214
)
215
215
except github3 .exceptions .GitHubException :
216
- print (f"{ repo .html_url } had an exception trying to get the activity date." )
216
+ print (
217
+ f"{ repo .html_url } had an exception trying to get the activity date.\
218
+ Potentially caused by ghost user."
219
+ )
217
220
return None
218
221
return active_date
219
222
@@ -397,9 +400,21 @@ def set_repo_data(
397
400
repo_data ["days_since_last_pr" ] = None
398
401
if additional_metrics :
399
402
if "release" in additional_metrics :
400
- repo_data ["days_since_last_release" ] = get_days_since_last_release (repo )
403
+ try :
404
+ repo_data ["days_since_last_release" ] = get_days_since_last_release (repo )
405
+ except github3 .exceptions .GitHubException :
406
+ print (
407
+ f"{ repo .html_url } had an exception trying to get the last release.\
408
+ Potentially caused by ghost user."
409
+ )
401
410
if "pr" in additional_metrics :
402
- repo_data ["days_since_last_pr" ] = get_days_since_last_pr (repo )
411
+ try :
412
+ repo_data ["days_since_last_pr" ] = get_days_since_last_pr (repo )
413
+ except github3 .exceptions .GitHubException :
414
+ print (
415
+ f"{ repo .html_url } had an exception trying to get the last PR.\
416
+ Potentially caused by ghost user."
417
+ )
403
418
404
419
print (f"{ repo .html_url } : { days_inactive } days inactive" ) # type: ignore
405
420
return repo_data
You can’t perform that action at this time.
0 commit comments