瀏覽代碼

[ruff] Skip logging subprocess exception as error (#3728)

## What changes were proposed in this pull request?

- Raised exception is not always an actual error. Mostly it notifies about the violations.

## How was this patch tested?

- Manually.
Harsh Gupta 1 年之前
父節點
當前提交
050cf3b6ec
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      desktop/core/src/desktop/management/commands/runruff.py

+ 1 - 1
desktop/core/src/desktop/management/commands/runruff.py

@@ -133,5 +133,5 @@ class Command(BaseCommand):
       if ret.returncode != 0:
         sys.exit(1)
     except subprocess.CalledProcessError as e:
-      LOG.error(f"Error running ruff command: {e}")
+      LOG.debug(f"Ruff command: {e}")
       sys.exit(1)