Update routes.py
This commit is contained in:
@@ -118,6 +118,7 @@ def plex():
|
|||||||
|
|
||||||
if os.path.exists('/app/app/config/config.ini'):
|
if os.path.exists('/app/app/config/config.ini'):
|
||||||
try:
|
try:
|
||||||
|
manage_bot('kill')
|
||||||
manage_bot('start')
|
manage_bot('start')
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
manage_bot('kill')
|
manage_bot('kill')
|
||||||
@@ -125,4 +126,4 @@ if os.path.exists('/app/app/config/config.ini'):
|
|||||||
else:
|
else:
|
||||||
print("Please configure bot in the webapi and click save changes to start the bot.")
|
print("Please configure bot in the webapi and click save changes to start the bot.")
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user