Commit 65674f8
committed
fix: mdstore: fix exception handler in InMemoryMetaData.parse
The exception handler in InMemoryMetaData.parse was failing for subclasses
other then `MetaDataFile` with:
AttributeError: 'MetaDataExtern' object has no attribute 'filename'
- because `self.filename` is only defined for MetaDataFile but not MetaDataExtern
The handler was essentially expecting it would only be invoked for MetaDataFile
and not other subclasses of InMemoryMetaData.
Provide useful descriptive messages for MetaDataFile and MetaDataExtern
subclassses - and fall back to a generic (but safe) message otherwise.1 parent a084c8f commit 65674f8
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
618 | 618 | | |
619 | 619 | | |
620 | 620 | | |
621 | | - | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
622 | 625 | | |
623 | 626 | | |
624 | 627 | | |
| |||
0 commit comments