Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
nexedi
libloc
Commits
92af07ad
Commit
92af07ad
authored
4 years ago
by
Michael Tremer
Browse files
Options
Download
Email Patches
Plain Diff
location-exporter: Warn, but do not fail on invalid input
Signed-off-by:
Michael Tremer
<
michael.tremer@ipfire.org
>
parent
141b1099
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
src/python/location-exporter.in
src/python/location-exporter.in
+6
-2
No files found.
src/python/location-exporter.in
View file @
92af07ad
...
...
@@ -270,8 +270,12 @@ class CLI(object):
countries
.
append
(
object
)
else
:
log
.
error
(
"Invalid argument: %s"
%
object
)
return
2
log
.
warning
(
"Invalid argument: %s"
%
object
)
continue
if
not
countries
and
not
asns
:
log
.
error
(
"Nothing to export"
)
return
2
# Open the database
try
:
...
...
This diff is collapsed.
Click to expand it.
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