Ensure to set peer variable before using it when catchin exception
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
ab7e09d7b6
commit
6cb7f8cfe9
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue