Skip to content

Commit d92c267

Browse files
committed
Fix issue with click 8.1
1 parent 846f683 commit d92c267

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: geocode_sqlite/cli.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def cli(ctx):
143143

144144

145145
# name changed in click 8.0
146-
result_callback = getattr(cli, "result_callback", cli.resultcallback)
146+
result_callback = getattr(cli, "result_callback", None) or getattr(cli, "resultcallback")
147147

148148

149149
@result_callback()

0 commit comments

Comments
 (0)