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

This commit is contained in:
Benjamin Renard 2022-12-17 00:58:49 +01:00
parent ab7e09d7b6
commit 6cb7f8cfe9
1 changed files with 1 additions and 0 deletions

View File

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