author | lbessard |
Fri, 29 Jun 2007 17:24:27 +0200 | |
changeset 233 | 6f2936f7fb3f |
parent 232 | e435bbec1759 |
child 234 | 5a17bcb520ef |
--- a/objdictgen/nodemanager.py Fri Jun 29 16:24:56 2007 +0200 +++ b/objdictgen/nodemanager.py Fri Jun 29 17:24:27 2007 +0200 @@ -631,7 +631,10 @@ type = self.CurrentNode.GetEntry(type)[1] if dic[type] == 0: try: - value = int(value, 16) + if value.startswith("0x"): + value = int(value, 16) + else: + value = int(value) self.CurrentNode.SetEntry(index, subIndex, value) except: pass