Skip to content

Commit

Permalink
Undefined name 'e' in openvino (#1876)
Browse files Browse the repository at this point in the history
Discovered in #1721
```
./contrib/components/openvino/ovms-deployer/containers/evaluate.py:62:16: F821 undefined name 'e'
        except e:
               ^
./contrib/components/openvino/ovms-deployer/containers/evaluate.py:63:50: F821 undefined name 'e'
            print("Can not read the image file", e)
                                                 ^
```
Your review please @Ark-kun
  • Loading branch information
cclauss authored and k8s-ci-robot committed Aug 21, 2019
1 parent 7b442f4 commit 2592307
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def getJpeg(path, size, path_prefix):
img = img.astype('float32')
img = img.transpose(2,0,1).reshape(1,3,size,size)
print(path, img.shape, "; data range:",np.amin(img),":",np.amax(img))
except e:
except Exception as e:
print("Can not read the image file", e)
img = None
else:
Expand Down Expand Up @@ -138,4 +138,4 @@ def getJpeg(path, size, path_prefix):
json.dump(metrics, f)
f.close
print("\nOverall accuracy=",matched/i*100,"%")
print("Average latency=",latency,"ms")
print("Average latency=",latency,"ms")

0 comments on commit 2592307

Please sign in to comment.