mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Fix wrong function calls to warning
This commit is contained in:
@@ -7955,13 +7955,13 @@ def popup_rename(data):
|
|||||||
@logger.catch
|
@logger.catch
|
||||||
def popup_rename_story(data):
|
def popup_rename_story(data):
|
||||||
if 'popup_renameable' not in session:
|
if 'popup_renameable' not in session:
|
||||||
logger.warn("Someone is trying to rename a file in your server. Blocked.")
|
logger.warning("Someone is trying to rename a file in your server. Blocked.")
|
||||||
return
|
return
|
||||||
if not session['popup_renameable']:
|
if not session['popup_renameable']:
|
||||||
logger.warn("Someone is trying to rename a file in your server. Blocked.")
|
logger.warning("Someone is trying to rename a file in your server. Blocked.")
|
||||||
return
|
return
|
||||||
if session['popup_jailed_dir'] and session["popup_jailed_dir"] not in data["file"]:
|
if session['popup_jailed_dir'] and session["popup_jailed_dir"] not in data["file"]:
|
||||||
logger.warn("User is trying to rename files in your server outside the jail. Blocked. Jailed Dir: {} Requested Dir: {}".format(session['popup_jailed_dir'], data['file']))
|
logger.warning("User is trying to rename files in your server outside the jail. Blocked. Jailed Dir: {} Requested Dir: {}".format(session['popup_jailed_dir'], data['file']))
|
||||||
return
|
return
|
||||||
|
|
||||||
path = data["file"]
|
path = data["file"]
|
||||||
|
Reference in New Issue
Block a user