Skip to content

Commit

Permalink
Fix crash in tdmsinfo when channel has no data
Browse files Browse the repository at this point in the history
Fixes #44
  • Loading branch information
adamreeve committed Feb 12, 2016
1 parent f8efc81 commit f708be9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nptdms/tdmsinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ def main():
display("%s" % channel.path, level)
if args.properties:
level = 3
display("data type: %s" % channel.data_type.name, level)
if channel.data_type is not None:
display("data type: %s" % channel.data_type.name, level)
display_properties(channel, level)


Expand Down

0 comments on commit f708be9

Please sign in to comment.