Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e78500e44e |
@@ -1,14 +1,4 @@
|
||||
#!/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.stderr:
|
||||
if result.returncode != 0 and result.stderr:
|
||||
error = result.stderr.decode("utf-8")
|
||||
if ignore and re.match(ignore, error):
|
||||
return result
|
||||
|
||||
Reference in New Issue
Block a user