import subprocess


def run(command):
    try:
        subprocess.check_call(command, shell=True)
    except:
        pass

import subprocess


def run(command):
    try:
        subprocess.check_call(command, shell=True)
    except Exception:
        pass

Set expected exception class in "except" block
Set expected exception class in "except" block

Fix issue E722 of flake8

  import subprocess
  
  
  def run(command):
      try:
          subprocess.check_call(command, shell=True)
-     except:
+     except Exception:
          pass
  
Set expected exception class in "except" block
## Code Before:
import subprocess


def run(command):
    try:
        subprocess.check_call(command, shell=True)
    except:
        pass

## Instruction:
Set expected exception class in "except" block
## Code After:
import subprocess


def run(command):
    try:
        subprocess.check_call(command, shell=True)
    except Exception:
        pass
