mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-01 10:56:23 +01:00
Fix 'os' import error in replace-file cleanup
- Remove redundant 'import os' inside try block - os module already imported at top of file - Fixes: local variable 'os' referenced before assignment
This commit is contained in:
@@ -1275,7 +1275,6 @@ def scanner_replace_file(request):
|
||||
|
||||
# Clean up CyberPanel temp file
|
||||
try:
|
||||
import os
|
||||
os.remove(cyberpanel_temp)
|
||||
except:
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user