Skip to content
This repository was archived by the owner on Aug 28, 2020. It is now read-only.

Commit 07b095f

Browse files
committed
raise a runtime error when there is no socket for init connection
1 parent 0f3ae56 commit 07b095f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pugdebug/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ def __connect_server(self):
235235

236236
def __init_connection(self):
237237
if self.sock is None:
238-
return
238+
raise RuntimeError("Can't init connection without a socket")
239239

240240
idekey = get_setting('debugger/idekey')
241241

0 commit comments

Comments
 (0)