Commit 424b58b4 authored by Paul's avatar Paul
Browse files

Catch exception

parent 19bf60bd
...@@ -44,6 +44,7 @@ def get_device_time(s): ...@@ -44,6 +44,7 @@ def get_device_time(s):
def benchmark_ck(config, tuning): def benchmark_ck(config, tuning):
try:
b = { b = {
'settings': { 'settings': {
'iterations': 100 'iterations': 100
...@@ -59,6 +60,7 @@ def benchmark_ck(config, tuning): ...@@ -59,6 +60,7 @@ def benchmark_ck(config, tuning):
dtime = get_device_time(line) dtime = get_device_time(line)
print(dtime) print(dtime)
return dtime return dtime
finally:
return sys.float_info.max return sys.float_info.max
......
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