Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
thicket_db: Correct logging choices to use WARNING instead of WARN
Browse files Browse the repository at this point in the history
The thicket_db code used WARN instead of the correct WARNING in the
log_level choices, resulting in a crash if the user selected WARNING as
the Thicket log_level in the Add-on preferences.

Thanks to John Payne for reporting the issue:
https://blenderartists.org/t/request-for-feedback-thicket-free-open-source-laubwerk-plants-add-on-for-blender-2-80/1234777/3

Signed-off-by: Darren Hart <[email protected]>
  • Loading branch information
dvhart committed Jun 14, 2020
1 parent 927cdd7 commit 024b8de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thicket_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ def main():
argParse.add_argument("cmd", choices=["read", "build", "parse_plant"])
argParse.add_argument("-d", help="database filename")
argParse.add_argument("-f", help="Laubwerk Plant filename (lbw.gz)")
argParse.add_argument("-l", choices=["DEBUG", "INFO", "WARN", "ERROR", "CRITICAL"],
argParse.add_argument("-l", choices=["DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL"],
default="INFO", help="Logging level")
argParse.add_argument("-p", help="Laubwerk Plants path")
argParse.add_argument("-s", help="Laubwerk Python SDK path")
Expand Down

0 comments on commit 024b8de

Please sign in to comment.