Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F11012721
policy.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
644 B
Subscribers
None
policy.py
View Options
# Copyright (C) 2015 Stefano Zacchiroli <zack@upsilon.cc>,
# Antoine R. Dumont <antoine.romain.dumont@gmail.com>
# See the AUTHORS file at the top-level directory of this distribution
# License: GNU General Public License version 3, or any later version
# See top-level LICENSE file for more information
from
requests
import
ConnectionError
def
retry_if_io_error
(
exc
):
"""Return True if IOError,
False otherwise.
"""
return
isinstance
(
exc
,
IOError
)
def
retry_if_connection_error
(
exc
):
"""Return True if ConnectionError,
False otherwise.
"""
return
isinstance
(
exc
,
ConnectionError
)
File Metadata
Details
Attached
Mime Type
text/x-python
Expires
Thu, Sep 18, 4:30 AM (1 d, 10 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3241087
Attached To
rDLDG Git loader
Event Timeline
Log In to Comment