Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
I
inary
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
SulinOS
inary
Commits
c9fb1883
Kaydet (Commit)
c9fb1883
authored
Nis 15, 2018
tarafından
Suleyman Poyraz
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Yatmadan önce son bug fixasyonu ;)
üst
f957d40c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
fetcher.py
inary/fetcher.py
+2
-7
No files found.
inary/fetcher.py
Dosyayı görüntüle @
c9fb1883
...
...
@@ -140,9 +140,8 @@ class Fetcher:
}
def
fetch
(
self
,
timeout
=
3
):
def
test
(
self
,
timeout
=
3
):
try
:
import
urllib.request
requests
.
get
(
self
.
url
.
get_uri
(),
proxies
=
self
.
_get_proxies
(),
timeout
=
timeout
,
...
...
@@ -154,11 +153,6 @@ class Fetcher:
raise
FetchError
(
msg
)
return
False
except
urlerror
.
HTTPError
as
e
:
msg
=
_
(
"Reaised an HTTP Error:
\n
{}"
)
.
format
(
e
)
raise
FetchError
(
msg
)
return
False
except
Error
as
e
:
msg
=
_
(
"Can not avaible remote server:
\n
{}"
)
.
format
(
e
)
raise
FetchError
(
msg
)
...
...
@@ -186,6 +180,7 @@ class Fetcher:
proxies
=
self
.
_get_proxies
(),
headers
=
self
.
headers_dict
,
verify
=
verify
,
timeout
=
5
,
stream
=
True
)
handler
=
UIHandler
()
...
...
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