Aditya Hase
пре 4 година
No known key found for this signature in database
GPG Key ID: A55F0FCA0234972
1 измењених фајлова са
5 додато и
8 уклоњено
-
frappe/event_streaming/doctype/event_producer/test_event_producer.py
|
|
@@ -351,17 +351,14 @@ def unsubscribe_doctypes(producer_url): |
|
|
|
event_producer.save() |
|
|
|
|
|
|
|
def connect(): |
|
|
|
try: |
|
|
|
producer_site = FrappeClient( |
|
|
|
def _connect(): |
|
|
|
return FrappeClient( |
|
|
|
url=producer_url, |
|
|
|
username='Administrator', |
|
|
|
password='admin', |
|
|
|
verify=False |
|
|
|
) |
|
|
|
try: |
|
|
|
return _connect() |
|
|
|
except Exception: |
|
|
|
connect() |
|
|
|
else: |
|
|
|
if not producer_site: |
|
|
|
connect() |
|
|
|
else: |
|
|
|
return producer_site |
|
|
|
return _connect() |