Commit 3e375b6c authored by Denis Bilenko's avatar Denis Bilenko

evdns.pxi: clear exc_info in the callback

parent fe2bbdca
...@@ -78,6 +78,7 @@ cdef void __evdns_callback(int code, char type, int count, int ttl, void *addrs, ...@@ -78,6 +78,7 @@ cdef void __evdns_callback(int code, char type, int count, int ttl, void *addrs,
callback(code, type, ttl, result) callback(code, type, ttl, result)
except: except:
traceback.print_exc() traceback.print_exc()
sys.exc_clear()
def dns_resolve_ipv4(char *name, int flags, object callback): def dns_resolve_ipv4(char *name, int flags, object callback):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment