markreidvfx / pyavb

Read and write Avid Bin FIles (AVB) files
https://pyavb.readthedocs.io
MIT License
58 stars 4 forks source link

Track objects don't always have all their properties #23

Open mjiggidy opened 1 year ago

mjiggidy commented 1 year ago

According to the documentation for avb.trackgroups.Track, a Track object should have an attributes property.

I've found that not every Track object does, unless the track has some special attributes set via Avid (such as a a custom track name). For tracks that are "just regular ol' Tracks," often if I try to access my_track.attributes, I get an exception: "Track has no attribute attributes" where I would instead expect maybe an "empty" avb.attributes.Attributes object instead.