Ulm-IQO / qudi-core

A framework for modular measurement applications.
GNU General Public License v3.0
28 stars 21 forks source link

TextDataStorage exception handling #36

Closed Neverhorst closed 1 year ago

Neverhorst commented 1 year ago

Description

Better exception handling with human-readable error message when trying to load a non-unicode file with TextDataStorage.load_data. Cryptic UnicodeDecodeError is translated into a clear ValueError error message.

Motivation and Context

Original UnicodeDecodeError message was not very helpful for users.

How Has This Been Tested?

On dummy Win 10.0.19044 Python 3.9.10

Types of changes:

Checklist: