Fix: fix from copilot

This commit is contained in:
Kirill Sobakin
2026-03-16 23:54:56 +03:00
parent 689a9ea755
commit fee4746b57
2 changed files with 4 additions and 3 deletions

View File

@@ -96,6 +96,7 @@ def mikrotik_fwd(src, out, remove={'google.com'}):
def lines_from_file(filepath):
if not os.path.exists(filepath):
print(f"Warning: input file not found: {filepath}", file=sys.stderr)
return []
with open(filepath, 'r', encoding='utf-8') as f:
return [line.strip() for line in f if line.strip()]