Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Dokos
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cylab
Dokos
Commits
264c5a97
Commit
264c5a97
authored
2 years ago
by
Thibault Debatty
Browse files
Options
Downloads
Patches
Plain Diff
check passwords file exists
parent
e5f9f2d2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/dokos/dokos.py
+7
-3
7 additions, 3 deletions
src/dokos/dokos.py
with
7 additions
and
3 deletions
src/dokos/dokos.py
+
7
−
3
View file @
264c5a97
...
...
@@ -156,8 +156,12 @@ def main():
parse_arguments
()
if
not
validators
.
url
(
ARGS
.
url
)
:
print
(
"
URL
"
+
ARGS
.
url
+
"
is not valid!
"
)
sys
.
exit
(
-
1
)
print
(
"
URL
"
+
ARGS
.
url
+
"
is not valid!
"
)
sys
.
exit
()
if
not
os
.
path
.
isfile
(
ARGS
.
passwords
)
:
print
(
"
Passwords file
"
+
ARGS
.
passwords
+
"
does not exist!
"
)
sys
.
exit
()
with
open
(
ARGS
.
passwords
,
"
r
"
)
as
passwords_file
:
...
...
@@ -183,7 +187,7 @@ def main():
except
KeyboardInterrupt
:
# User interrupt the program with ctrl+c
print_safe
(
"
Stopping threads...
"
)
executor
.
shutdown
(
wait
=
Fals
e
,
cancel_futures
=
True
)
executor
.
shutdown
(
wait
=
Tru
e
,
cancel_futures
=
True
)
sys
.
exit
()
...
...
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