Skip to content

Commit 2cfc9bc

Browse files
bluhmoroulet
authored andcommitted
ignore emtpy locale
If locale is set to emtpy string, to not localize text. Fixes display of names in opcua-client-gui. Regression introduced in 6ce8254
1 parent 96a8ea6 commit 2cfc9bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

opcua/ua/uatypes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ def Locale(self, locale):
554554
def to_string(self):
555555
if self.Text is None:
556556
return ""
557-
if self.Locale is None:
557+
if not self.Locale:
558558
return self.Text
559559
return self.__str__()
560560

0 commit comments

Comments
 (0)