Skip to content

Commit

Permalink
Update utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
RhinosF1 authored May 18, 2024
1 parent 94b7034 commit aeb9d4e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions miraheze/salt/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@

import subprocess
import sys
import os
from typing import Optional, TypedDict

class DbClusterMap(TypedDict):
c1: str
Expand Down Expand Up @@ -29,7 +32,7 @@ def execute_salt_command(salt_command: str, shell: bool = True, stdout: Optional
except subprocess.CalledProcessError as e:
print(f"Command '{salt_command}' failed with return code {e.returncode}")
except Exception as e:
print(f"An error occurred: {e}")
print(f'An error occurred: {e}')
return None
if response in ['s', 'skip']:
return None
Expand Down

0 comments on commit aeb9d4e

Please sign in to comment.