Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm-play-gui
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Roman Alifanov
eepm-play-gui
Commits
7cac8077
Commit
7cac8077
authored
Oct 28, 2024
by
Roman Alifanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
errordialog: removing duplicate lines
parent
dc747b8e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
errordialog.py
src/widgets/errordialog.py
+2
-1
No files found.
src/widgets/errordialog.py
View file @
7cac8077
...
@@ -34,8 +34,9 @@ class ErrorDialog(Adw.Dialog):
...
@@ -34,8 +34,9 @@ class ErrorDialog(Adw.Dialog):
[
"epm"
,
"print"
,
"info"
],
[
"epm"
,
"print"
,
"info"
],
capture_output
=
True
,
text
=
True
,
check
=
True
)
.
stdout
capture_output
=
True
,
text
=
True
,
check
=
True
)
.
stdout
seen
=
set
()
filtered_error_lines
=
[
filtered_error_lines
=
[
line
for
line
in
error
.
splitlines
()
if
'
%
'
not
in
line
line
for
line
in
error
.
splitlines
()
if
'
%
'
not
in
line
and
not
(
line
in
seen
or
seen
.
add
(
line
))
]
]
filtered_error
=
'
\n
'
.
join
(
filtered_error_lines
)
filtered_error
=
'
\n
'
.
join
(
filtered_error_lines
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment