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:
parent
856c29184e
commit
993c68441a
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue