Skip to content

Commit f6c2128

Browse files
authored
Fixed: collecting stats if path stats are empty
1 parent ed60671 commit f6c2128

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/writegithubstat/githubstat.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ def measures(self) -> List[str]:
100100
def process_stat(self, responses: List[Dict[str, Any]]) -> pd.DataFrame:
101101
data = responses[0]
102102
df = pd.DataFrame(data)
103-
df = df.drop("title", axis=1)
103+
if "title" in df.columns:
104+
df = df.drop("title", axis=1)
104105
return df
105106

106107

0 commit comments

Comments
 (0)