Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
sakia
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
clients
python
sakia
Commits
ad540448
Commit
ad540448
authored
8 years ago
by
Moul
Browse files
Options
Downloads
Patches
Plain Diff
[fix]
#692
: check certification file value is not empty.
parent
75a7e9e3
No related branches found
No related tags found
1 merge request
!693
Check certification file value is not empty
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/sakia/gui/sub/certification/view.py
+1
-1
1 addition, 1 deletion
src/sakia/gui/sub/certification/view.py
with
1 addition
and
1 deletion
src/sakia/gui/sub/certification/view.py
+
1
−
1
View file @
ad540448
...
...
@@ -89,7 +89,7 @@ class CertificationView(QWidget, Ui_CertificationWidget):
file_name
=
QFileDialog
.
getOpenFileName
(
self
,
self
.
tr
(
"
Open identity document
"
),
""
,
self
.
tr
(
"
Duniter documents (*.txt)
"
))
if
file_name
:
if
file_name
and
file_name
[
0
]
:
with
open
(
file_name
[
0
],
'
r
'
)
as
open_file
:
raw_text
=
open_file
.
read
()
try
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment