Potential use of undefined attribute in giscanner
@fmuellner
Submitted by Florian Müllner Link to original bug (#768274)
Description
Not sure how to fix this one.
At the top of giscanner/cachestore.py: try: import cPickle as pickle except ImportError: import pickle
Later: try: data = pickle.load(fd) except (AttributeError, EOFError, ValueError, pickle.BadPickleGet): # Broken cache entry, remove it
The issue here is that BadPickleGet is defined in cPickle, but not the built-in pickle module. So in the case the fallback pickle import is used, the exception handling itself will throw an AttributeError ...