Skip to content

Commit

Permalink
Merge pull request #77 from BirdVox/fix-76-bis
Browse files Browse the repository at this point in the history
bugfix KeyError Species (4-letter code) when printing
  • Loading branch information
lostanlen authored Dec 6, 2020
2 parents 6023392 + fac2b36 commit 34d55c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion birdvoxdetect/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -985,7 +985,7 @@ def process_file(
# Print final messages.
if threshold is not None:
df = pd.read_csv(checklist_path)
if len(df)>0:
if (len(df)>0) and ("Species (4-letter code)" in df.columns):
logger.info(
"\n".join(
[
Expand Down
4 changes: 2 additions & 2 deletions birdvoxdetect/version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
short_version = "0.5"
version = "0.5.0dev0"
short_version = "0.4"
version = "0.4.1"

0 comments on commit 34d55c0

Please sign in to comment.