diff --git a/plugins/mysql/index.py b/plugins/mysql/index.py index 4ba8c360f..531e6aafd 100755 --- a/plugins/mysql/index.py +++ b/plugins/mysql/index.py @@ -901,7 +901,8 @@ def importDbExternal(): # print(mysql_cmd) os.system(mysql_cmd) - os.remove(import_sql) + if ext != 'sql': + os.remove(import_sql) return mw.returnJson(True, 'ok')