Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Jelle van der Waa
Archweb
Commits
632a5073
Commit
632a5073
authored
Jan 21, 2019
by
Jelle van der Waa
🚧
Browse files
mirrors: types.StringTypes does not exists in Python 3
parent
e0700d40
Changes
1
Hide whitespace changes
Inline
Side-by-side
mirrors/management/commands/mirrorcheck.py
View file @
632a5073
...
...
@@ -140,7 +140,7 @@ def check_mirror_url(mirror_url, location, timeout):
except
urllib
.
error
.
URLError
as
e
:
log
.
is_success
=
False
log
.
error
=
e
.
reason
if
isinstance
(
e
.
reason
,
types
.
StringTypes
)
and
\
if
isinstance
(
e
.
reason
,
str
)
and
\
re
.
search
(
r
'550.*No such file'
,
e
.
reason
):
# similar to 404 case above, still record duration
end
=
time
.
time
()
...
...
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