Browse Source

[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 year ago
parent
commit
050cf3b6ec
1 changed files with 1 additions and 1 deletions
  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:
       if ret.returncode != 0:
         sys.exit(1)
         sys.exit(1)
     except subprocess.CalledProcessError as e:
     except subprocess.CalledProcessError as e:
-      LOG.error(f"Error running ruff command: {e}")
+      LOG.debug(f"Ruff command: {e}")
       sys.exit(1)
       sys.exit(1)