linted code
This commit is contained in:
@@ -13,7 +13,6 @@ import os
|
|||||||
from database import get_database
|
from database import get_database
|
||||||
from config import Config, get_config
|
from config import Config, get_config
|
||||||
|
|
||||||
|
|
||||||
# imports for the __init_subclass__ method, do not remove pls
|
# imports for the __init_subclass__ method, do not remove pls
|
||||||
from firewall.fwtype import FWType
|
from firewall.fwtype import FWType
|
||||||
from firewall.iptables import Iptables
|
from firewall.iptables import Iptables
|
||||||
@@ -947,9 +946,7 @@ class Handler(BaseHTTPRequestHandler):
|
|||||||
if fwtype == "raw":
|
if fwtype == "raw":
|
||||||
filename = f"malicious_ips.txt"
|
filename = f"malicious_ips.txt"
|
||||||
|
|
||||||
file_path = os.path.join(
|
file_path = os.path.join(self.config.exports_path, f"{filename}")
|
||||||
self.config.exports_path, f"{filename}"
|
|
||||||
)
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if os.path.exists(file_path):
|
if os.path.exists(file_path):
|
||||||
|
|||||||
Reference in New Issue
Block a user