diff --git a/pyproject.toml b/pyproject.toml index 2b7a5d6..764f550 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,7 +7,7 @@ name = "write-githubstat" packages = [ { include = "writegithubstat", from = "src" }, ] -version = "0.2.0" +version = "0.2.1" readme = "README.md" description = "write-githubstat makes it easy to collect, filter and save github statistics to csv files." license = "Apache 2.0" diff --git a/src/writegithubstat/githubstat.py b/src/writegithubstat/githubstat.py index e5c35fd..d75d68c 100644 --- a/src/writegithubstat/githubstat.py +++ b/src/writegithubstat/githubstat.py @@ -100,7 +100,8 @@ def measures(self) -> List[str]: def process_stat(self, responses: List[Dict[str, Any]]) -> pd.DataFrame: data = responses[0] df = pd.DataFrame(data) - df = df.drop("title", axis=1) + if "title" in df.columns: + df = df.drop("title", axis=1) return df