Commit d97627a1 authored by Tomasz Wlostowski's avatar Tomasz Wlostowski

tools/svec-wrc-loader: fix exception when the card is declared but not present

parent c956d695
......@@ -50,6 +50,8 @@ class CSvec:
self.path = vme_dir + subdir;
m = re.match("svec\.(\d+)", subdir)
if m:
if not os.path.isfile(self.path + "/slot"):
continue
self.slot = sysfs_read(self.path + "/slot")
self.lun = int(m.group(1))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment