mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-05-09 19:17:25 +02:00
fix(plugins): Add missing outer except block in fetch_plugin_store
This commit is contained in:
@@ -1317,6 +1317,15 @@ def fetch_plugin_store(request):
|
||||
'error': error_message,
|
||||
'plugins': []
|
||||
}, status=500)
|
||||
except Exception as outer_error:
|
||||
# Catch any other unexpected errors
|
||||
error_message = str(outer_error)
|
||||
logging.writeToFile(f"Unexpected error in fetch_plugin_store: {error_message}")
|
||||
return JsonResponse({
|
||||
'success': False,
|
||||
'error': error_message,
|
||||
'plugins': []
|
||||
}, status=500)
|
||||
|
||||
@csrf_exempt
|
||||
@require_http_methods(["POST"])
|
||||
|
||||
Reference in New Issue
Block a user