Module variable being reassigned in urifunctions.py
The warnings
module variable is being reassigned in dqsegdb.urifunctions.getDataUrllib2
, resulting in an AttributeError
when the warnings.warn
method is called:
File "/usr/lib/python2.7/site-packages/dqsegdb/apicalls.py", line 177, in dqsegdbQueryTimes
result=urifunctions.getDataUrllib2(queryurl)
File "/usr/lib/python2.7/site-packages/dqsegdb/urifunctions.py", line 114, in getDataUrllib2
warnings.warn("Issue accesing url: %s; Reason: %s" % (url,str(e.reason)))
AttributeError: 'bool' object has no attribute 'warn'
This happens every time a URLError
is raised from that method.