Skip to content

Commit

Permalink
Fix incorrect assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
llimeht committed Apr 5, 2021
1 parent aefd856 commit be75b27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sas/qtgui/Perspectives/Fitting/FittingPerspective.py
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ def getTabByName(self, name):
"""
Returns the tab with with attribute name *name*
"""
assert(name, str)
assert isinstance(name, str)
for tab in self.tabs:
if tab.modelName() == name:
return tab
Expand Down

0 comments on commit be75b27

Please sign in to comment.