File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 55
66from restclients_core import models
77from restclients_core .exceptions import DataFailureException
8+ from restclients_core .util .retry import retry
89from uw_r25 import nsmap , get_resource
910from uw_r25 .dao import R25_DAO
1011from uw_r25 .events import events_from_xml
1617logger = logging .getLogger (__name__ )
1718
1819
20+ RETRY_STATUS_CODES = [0 , 429 ]
21+
22+
1923def live_url (self ):
2024 return "https://25live.collegenet.com/pro/%s#!/home/event/%s/details" % (
2125 R25_DAO ().get_service_setting ("INSTANCE" ),
@@ -626,6 +630,7 @@ def delete_favorite(object_type, object_id):
626630 return result
627631
628632
633+ @retry (DataFailureException , status_codes = RETRY_STATUS_CODES , logger = logger )
629634def get_reservations_attrs (** kwargs ):
630635 kwargs ["scope" ] = "extended"
631636 url = "reservations.xml"
You can’t perform that action at this time.
0 commit comments