Skip to content

Commit

Permalink
[pycaffe] add missing import sys
Browse files Browse the repository at this point in the history
  • Loading branch information
longjon authored and lukeyeager committed Mar 11, 2015
1 parent f73ed4d commit 25a2903
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/caffe/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
# Python3 will most likely not be able to load protobuf
from caffe.proto import caffe_pb2
except:
import sys
if sys.version_info >= (3,0):
print("Failed to include caffe_pb2, things might go wrong!")
else:
Expand Down

0 comments on commit 25a2903

Please sign in to comment.