Skip to content

Commit cec332f

Browse files
committed
except RuntimeError -> except RuntimeError as e
1 parent df8b201 commit cec332f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

influxdb/tests/server_tests/influxdb_instance.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ def __init__(self,
3636
try:
3737
self._start_server(conf_template, udp_enabled)
3838
break
39-
except RuntimeError: # Happens when the ports are already in use.
39+
# Happens when the ports are already in use.
40+
except RuntimeError as e:
4041
errors += 1
4142
if errors > 2:
4243
raise e

0 commit comments

Comments
 (0)