Work around empty catch
This commit is contained in:
parent
ee5851df72
commit
c827006457
1 changed files with 2 additions and 4 deletions
|
@ -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
|
|
||||||
|
|
Loading…
Reference in a new issue