Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
15e03281d4 | ||
|
|
72e849cc49 |
@@ -1,4 +1,14 @@
|
||||
#!/usr/bin/env python3
|
||||
# /// script
|
||||
# dependencies = [
|
||||
# "tqdm",
|
||||
# "requests",
|
||||
# "dbus-python",
|
||||
# "gbinder",
|
||||
# "PyGObject",
|
||||
# "InquirerPy"
|
||||
# ]
|
||||
# ///
|
||||
from InquirerPy import inquirer
|
||||
from InquirerPy.base.control import Choice
|
||||
from InquirerPy.separator import Separator
|
||||
|
||||
+1
-1
@@ -40,7 +40,7 @@ def run(args: list, env: Optional[str] = None, ignore: Optional[str] = None):
|
||||
)
|
||||
|
||||
# print(result.stdout.decode())
|
||||
if result.returncode != 0 and result.stderr:
|
||||
if result.stderr:
|
||||
error = result.stderr.decode("utf-8")
|
||||
if ignore and re.match(ignore, error):
|
||||
return result
|
||||
|
||||
Reference in New Issue
Block a user