Skip to content

Commit

Permalink
Merge pull request #228 from alces-software/prevent-urllib-error
Browse files Browse the repository at this point in the history
Switch to urllib2 to prevent exception
  • Loading branch information
jbuchbinder committed Nov 8, 2018
2 parents 36e4b7c + 3d8227e commit 2f7fcab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions httpd/python_modules/httpd.py
Expand Up @@ -35,7 +35,7 @@
### http://www.gnu.org/licenses/gpl.txt

import time
import urllib
import urllib2
import subprocess
import traceback

Expand Down Expand Up @@ -74,7 +74,7 @@ def update_stats():
try:
httpd_stats = {}
logging.debug(' opening URL: ' + str(STATUS_URL))
f = urllib.urlopen(STATUS_URL, None, 2)
f = urllib2.urlopen(STATUS_URL, None, 2)

for line in f.readlines():
diff = False
Expand Down

0 comments on commit 2f7fcab

Please sign in to comment.