From 51c8be6baf0f97ae8bfed6359b7d9beb462f6c91 Mon Sep 17 00:00:00 2001 From: llrosy798 <77792354+llrosy798@users.noreply.github.com> Date: Thu, 21 Jan 2021 23:41:22 +0900 Subject: [PATCH] fill unknown symbols in known catalog --- DeDRM_plugin/ion.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/DeDRM_plugin/ion.py b/DeDRM_plugin/ion.py index 3eeef3c..d8d52aa 100644 --- a/DeDRM_plugin/ion.py +++ b/DeDRM_plugin/ion.py @@ -512,6 +512,8 @@ class BinaryIonParser(object): if table is not None: self.symbols.import_(table, min(maxid, len(table.symnames))) + if len(table.symnames) < maxid: + self.symbols.importunknown(name + "-unknown", maxid - len(table.symnames)) else: self.symbols.importunknown(name, maxid)