| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -394,7 +394,7 @@ def display(self, d: Union[str, Dict[str, Any]], **kwargs: Any) -> None: | |||
| 394 | 394 | ||
| 395 | 395 | print(yaml.safe_dump(d, default_flow_style=False)) | |
| 396 | 396 | except ImportError: | |
| 397 | - exit( | ||
| 397 | + sys.exit( | ||
| 398 | 398 | "PyYaml is not installed.\n" | |
| 399 | 399 | "Install it with `pip install PyYaml` " | |
| 400 | 400 | "to use the yaml output feature" | |
@@ -415,7 +415,7 @@ def display_list( | |||
| 415 | 415 | ) | |
| 416 | 416 | ) | |
| 417 | 417 | except ImportError: | |
| 418 | - exit( | ||
| 418 | + sys.exit( | ||
| 419 | 419 | "PyYaml is not installed.\n" | |
| 420 | 420 | "Install it with `pip install PyYaml` " | |
| 421 | 421 | "to use the yaml output feature" | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -52,7 +52,6 @@ disable = [ | |||
| 52 | 52 | "attribute-defined-outside-init", | |
| 53 | 53 | "broad-except", | |
| 54 | 54 | "consider-using-generator", | |
| 55 | - "consider-using-sys-exit", | ||
| 56 | 55 | "cyclic-import", | |
| 57 | 56 | "duplicate-code", | |
| 58 | 57 | "fixme", | |
| Back | FazBrowse Home | New Git URL |
0 commit comments