projects
/
platform
/
upstream
/
tvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6914963
)
Fix parsing of different exception string formats (#4785)
author
jmorrill
<jeremiah.morrill@gmail.com>
Thu, 30 Jan 2020 16:43:16 +0000
(08:43 -0800)
committer
GitHub
<noreply@github.com>
Thu, 30 Jan 2020 16:43:16 +0000
(
00:43
+0800)
python/tvm/_ffi/base.py
patch
|
blob
|
history
diff --git
a/python/tvm/_ffi/base.py
b/python/tvm/_ffi/base.py
index cdcc131ca257670c2943b034ea7273e2860b7661..36effa3800a842058f369a04e901ff6a7a5e98b1 100644
(file)
--- a/
python/tvm/_ffi/base.py
+++ b/
python/tvm/_ffi/base.py
@@
-205,8
+205,9
@@
def _find_error_type(line):
return None
start_pos = line.rfind(":", 0, end_pos)
if start_pos == -1:
- return None
- err_name = line[start_pos + 1 : end_pos].strip()
+ err_name = line[:end_pos].strip()
+ else:
+ err_name = line[start_pos + 1 : end_pos].strip()
if _valid_error_name(err_name):
return err_name
return None