Skip to content

Commit

Permalink
fix: equation, lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Morriz committed Apr 17, 2024
1 parent 8edd39f commit b111e4b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ def get_domains(filter: Callable[[Plugin], bool] = None) -> List[str]:
if i.tls:
domains.append(i.tls.main)
if i.tls.sans:
for s in i.tls.sans:
domains.append(s)
for sans in i.tls.sans:
domains.append(sans)
return domains


Expand Down
2 changes: 1 addition & 1 deletion lib/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def read_env_file(file: str) -> Dict[str, str]:

def run_command(command: List[str], cwd: str = None) -> int:
env_file = f"{cwd}/.env" if cwd else ""
env = read_env_file(env_file) if not env_file == "" and os.path.exists(env_file) else {}
env = read_env_file(env_file) if env_file != "" and os.path.exists(env_file) else {}
with open("logs/error.log", "w", encoding="utf-8") as f:
process = subprocess.run(
command,
Expand Down

0 comments on commit b111e4b

Please sign in to comment.