Skip to content

Commit

Permalink
add debug message on selection cancel
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrea Ghensi committed Feb 24, 2024
1 parent 99eb327 commit a946fc7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pyrevitlib/pyrevit/revit/selection.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ def _pick_obj(obj_type, message, multiple=False, world=False, selection_filter=N
else picker_func(obj_type, message)
)
except RevitExceptions.OperationCanceledException:
mlogger.debug("Operation canceled by user")
return None
refs = list(pick_result) if multiple else [pick_result]
if not refs:
Expand Down

0 comments on commit a946fc7

Please sign in to comment.