Skip to content

[FIX] owdiscretize: Fix formatting display string when user role is undefined#6498

Merged
janezd merged 1 commit intobiolab:masterfrom
ales-erjavec:fixes/owdiscretize-model-error
Aug 24, 2023
Merged

[FIX] owdiscretize: Fix formatting display string when user role is undefined#6498
janezd merged 1 commit intobiolab:masterfrom
ales-erjavec:fixes/owdiscretize-model-error

Conversation

@ales-erjavec
Copy link
Contributor

Issue

Fix an error in display string formatting when updating widget input while a filter/search string is entered in the list view. I.e.

  • File -> Discretize,
  • Enter some text in the filter edit line
  • Reload the file.
----------------------------- TypeError Exception -----------------------------
Traceback (most recent call last):
  File "/Users/aleserjavec/workspace/orange3/Orange/widgets/data/owdiscretize.py", line 345, in data
    hint, points, values = index.data(Qt.UserRole)
    ^^^^^^^^^^^^^^^^^^^^
TypeError: cannot unpack non-iterable NoneType object
-------------------------------------------------------------------------------
Description of changes

Fix formatting display string when user role is undefined

Includes
  • Code changes
  • Tests
  • Documentation

@codecov
Copy link

codecov bot commented Jul 7, 2023

Codecov Report

Merging #6498 (f746f36) into master (ff152a9) will decrease coverage by 0.01%.
The diff coverage is 85.71%.

❗ Current head f746f36 differs from pull request most recent head a8cf0c5. Consider uploading reports for the commit a8cf0c5 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6498      +/-   ##
==========================================
- Coverage   87.66%   87.66%   -0.01%     
==========================================
  Files         321      321              
  Lines       69374    69379       +5     
==========================================
+ Hits        60817    60820       +3     
- Misses       8557     8559       +2     

@ales-erjavec ales-erjavec force-pushed the fixes/owdiscretize-model-error branch from f746f36 to a8cf0c5 Compare July 10, 2023 10:44
@janezd janezd self-assigned this Aug 17, 2023
@janezd janezd merged commit 20af588 into biolab:master Aug 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants