Skip to content

Commit

Permalink
v.dissolve: run aggregate_columns_exist_or_fatal() only if columns_to…
Browse files Browse the repository at this point in the history
…_aggregate defined (OSGeo#3416)
  • Loading branch information
landam authored and jadenabrams100 committed Feb 21, 2024
1 parent 9d8e3e3 commit 548832f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/v.dissolve/v.dissolve.py
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,8 @@ def main():
user_aggregate_methods, aggregate_backend, provide_defaults=not result_columns
)
if not result_columns:
aggregate_columns_exist_or_fatal(input_vector, layer, columns_to_aggregate)
if columns_to_aggregate:
aggregate_columns_exist_or_fatal(input_vector, layer, columns_to_aggregate)
columns_to_aggregate, user_aggregate_methods = match_columns_and_methods(
columns_to_aggregate, user_aggregate_methods
)
Expand Down

0 comments on commit 548832f

Please sign in to comment.