some edits for code quallity

This commit is contained in:
Bastian Schroll 2017-02-12 10:04:21 +01:00
parent 1c56509e25
commit 3c00628b2d
4 changed files with 6 additions and 6 deletions

View file

@ -18,7 +18,7 @@ from email.utils import make_msgid # need for confirm to RFC2822 standard
from includes import globalVars # Global variables
from includes.helper import timeHandler # helper function
#from includes.helper import timeHandler # helper function
from includes.helper import configHandler # helper function
from includes.helper import wildcardHandler # helper function

View file

@ -91,7 +91,8 @@ def run(typ,freq,data):
logging.debug("send %s HTTP request", typ)
try:
resp = urllib2.urlopen(url)
#resp = urllib2.urlopen(url)
urllib2.urlopen(url)
except urllib2.HTTPError as e:
logging.warning("HTTP response: %s", e.code)
except urllib2.URLError as e: