소스 검색

[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)