Commit 24451a06 authored by Marco Mariani's avatar Marco Mariani

removed unused exception object

parent 45322c70
...@@ -28,9 +28,9 @@ ...@@ -28,9 +28,9 @@
# #
############################################################################## ##############################################################################
import time
import os import os
import sys import sys
import time
import xmlrpclib import xmlrpclib
import socket as socketlib import socket as socketlib
import subprocess import subprocess
...@@ -59,7 +59,7 @@ def launchSupervisord(socket, configuration_file, logger): ...@@ -59,7 +59,7 @@ def launchSupervisord(socket, configuration_file, logger):
logger.info('Supervisor in shutdown procedure, will check again later.') logger.info('Supervisor in shutdown procedure, will check again later.')
trynum += 1 trynum += 1
time.sleep(2 * trynum) time.sleep(2 * trynum)
except Exception as e: except Exception:
# In case if there is problem with connection, assume that supervisord # In case if there is problem with connection, assume that supervisord
# is not running and try to run it # is not running and try to run it
break break
...@@ -109,7 +109,7 @@ def launchSupervisord(socket, configuration_file, logger): ...@@ -109,7 +109,7 @@ def launchSupervisord(socket, configuration_file, logger):
logger.warning('Wrong status name %(statename)r and code ' logger.warning('Wrong status name %(statename)r and code '
'%(statecode)r, trying again' % status) '%(statecode)r, trying again' % status)
trynum += 1 trynum += 1
except Exception as e: except Exception:
current_timeout = 5 * trynum current_timeout = 5 * trynum
trynum += 1 trynum += 1
else: else:
......
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