Ulm-IQO / qudi

(Legacy project) A modular laboratory experiment management suite, predecessor to qudi-core.
GNU General Public License v3.0
166 stars 141 forks source link

Fix typo to show name in format string #703

Closed nbeaver closed 2 years ago

nbeaver commented 2 years ago

Fixes a typo in the format string for a NameError on a duplicate name.

Description

Fix the NameError so that is says e.g.

'New POI name "my-name" already present in current POI list.'"

instead of

"'New POI name "{0}" already present in current POI list.'"

There's also an trailing newline at the end that the Github text editor added automatically.

Motivation and Context

This gives a more informative error message.

How Has This Been Tested?

Trivial change, has been tested manually.

Types of changes

Checklist: