提交 279109ba authored 作者: notoraptor's avatar notoraptor

Make exception-catch more explicit.

上级 8b578fad
......@@ -89,7 +89,7 @@ def init_dev(dev, name=None):
pcibusid = context.pcibusid
except pygpu.gpuarray.UnsupportedException:
pcibusid = '(unsupported for device %s)' % dev
except:
except Exception:
warnings.warn('Unable to get PCI Bus ID. Please consider updating libgpuarray and pygpu.')
pcibusid = 'unknown'
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论