Commit fea9d6bc authored by Jorrit Schaap's avatar Jorrit Schaap

SW-778: fixed typos

parent 2142426c
......@@ -14,14 +14,6 @@ from lofar.common.util import humanreadablesize
import urllib3
urllib3.disable_warnings()
try:
import mechanize
except ImportError as e:
print e
print "please install python 'mechanize' package: sudo pip install mechanize"
print
exit(1)
class MoMClient:
"""This is an HTTP client that knows how to use the Single Sign On of Mom2.
......@@ -261,8 +253,8 @@ class MoMClient:
result = response.text
if 'DOCTYPE HTML PUBLIC' in result:
logger.error('%s: MoM returned login screen instead of SIP for archive_id=%s mom_id=%s using url %s and data %s',
log_prefix, archive_id, mom_id, self.__momURLgetSIP, data)
logger.error('%s: MoM returned login screen instead of SIP for archive_id=%s mom_id=%s using url %s and params %s',
log_prefix, archive_id, mom_id, self.__momURLgetSIP, params)
wait_secs = (mom_retry + 1) * (mom_retry + 1) * 10
logger.info('%s: Retrying to getSIP for archiveId %s in %s seconds', log_prefix, archive_id, wait_secs)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment