ratal / mdfreader

Read Measurement Data Format (MDF) versions 3.x and 4.x file formats in python
Other
169 stars 74 forks source link

TypeError in mdf3reader.py #144

Closed sschob closed 6 years ago

sschob commented 6 years ago

In the current dev branch lines 553 in mdf3reader.py leads to a TypeError. https://github.com/ratal/mdfreader/blob/9c827c62b4aa085126e92147dbf5b937b6352b8d/mdfreader/mdf3reader.py#L553

sys.exc_info() returns a tuple, which leads to the following error

TypeError Traceback (most recent call last) ----> warn('Unexpected error:', sys.exc_info()) TypeError: category must be a Warning subclass, not 'tuple'

ratal commented 6 years ago

Hi, you are right, probably forgot it when I converted from print() to warn(). Probably below should better work ? warn('Unexpected error: {}'.format(exc_info()))

ratal commented 6 years ago

Should have fixed your issue