Ensure to set peer variable before using it when catchin exception
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Benjamin Renard 2022-12-17 00:58:49 +01:00
parent ab7e09d7b6
commit 6cb7f8cfe9

View file

@ -103,6 +103,7 @@ if not options.logfile or options.console:
logconsole.setFormatter(logformat)
log.addHandler(logconsole)
peer = "UNKNOWN"
try:
if options.unix_socket_path:
peer = options.unix_socket_path