Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
hub
ViralHostRangeDB
Commits
b5b6c7bd
Commit
b5b6c7bd
authored
Feb 08, 2022
by
Bryan BRANCOTTE
Browse files
notify when virus is empty
parent
ac71da91
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/viralhostrange/viralhostrangedb/business_process.py
View file @
b5b6c7bd
...
...
@@ -163,7 +163,7 @@ class MessageImportationObserver(ImportationObserver):
virus
=
str
(
virus
),
row_id
=
str
(
row_id
),
)
if
reason
:
if
reason
or
reason_id
:
msg
=
self
.
reason_to_str
(
msg
,
reason
,
reason_id
)
self
.
add_message
(
self
.
request
,
...
...
@@ -402,6 +402,12 @@ def __parse_file(file, importation_observer: ImportationObserver = None, sheet_n
row_id
=
row_id
,
col_id
=
id_col
+
start_at
,
)
elif
id_col
>
0
and
importation_observer
:
importation_observer
.
notify_virus_error
(
sub_row
[
0
],
row_id
,
reason_id
=
ImportationObserver
.
EMPTY_NAME
,
)
if
input_file
is
not
None
:
input_file
.
close
()
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment