Work around empty catch

This commit is contained in:
Kumi 2019-04-21 07:49:53 +00:00
parent ee5851df72
commit c827006457

View file

@ -6,13 +6,11 @@ import os
class ManagerConfig(AppConfig): class ManagerConfig(AppConfig):
name = 'manager' name = 'manager'
verbose_name = 'VPN360 Management' verbose_name = 'Remote VR Management'
def ready(self): def ready(self):
from .logger import logger from .logger import logger
for device in glob.glob("/opt/vpnmanager/imagebuilder/*"): for device in glob.glob("/opt/vpnmanager/imagebuilder/*"):
try: if glob.glob(device + "/.kumilock"):
os.remove(device + "/.kumilock") os.remove(device + "/.kumilock")
finally:
pass