We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ea1e586 + b90db1b commit 772be2eCopy full SHA for 772be2e
1 file changed
src/python_netlist/netlist.py
@@ -13,8 +13,12 @@ class Netlist:
13
def __init__(self, path):
14
self.path = path
15
netlist = {}
16
- with open(path) as net:
17
- txt = net.readlines()
+ with open(path, encoding='utf-8') as net:
+ try:
18
+ txt = net.readlines()
19
+ except UnicodeDecodeError:
20
+ print("\n!!! Make sure the symbol degree is not in the part description !!!\n")
21
+ return
22
i = 0
23
while "NODE" not in txt[i]:
24
i += 1
0 commit comments