mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-01 19:06:01 +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
|
# Clean up CyberPanel temp file
|
||||||
try:
|
try:
|
||||||
import os
|
|
||||||
os.remove(cyberpanel_temp)
|
os.remove(cyberpanel_temp)
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|||||||
Reference in New Issue
Block a user