Univention Bugzilla – Bug 54560
mail/univention-mail-postfix/share/listfilter.py: undefined name 'att' [F821]
Last modified: 2022-04-06 17:31:12 CEST
+++ This bug was initially created as a clone of Bug #53463 +++ mail/univention-mail-postfix/share/listfilter.py|214 col 37 error| undefined name 'att' [F821] fix: diff --git mail/univention-mail-postfix/share/listfilter.py mail/univention-mail-postfix/share/listfilter.py index 515fcc2fca..dda5707578 100755 --- mail/univention-mail-postfix/share/listfilter.py +++ mail/univention-mail-postfix/share/listfilter.py @@ -211,7 +211,7 @@ if __name__ == '__main__': else: - print("unknown action in %s" % att, file=sys.stderrr) + print("unknown action in %s" % attr, file=sys.stderr) print("defer_if_permit Service temporarily unavailable")
Two typos: # echo | /usr/share/univention-mail-postfix/listfilter.py Traceback (most recent call last): File "/usr/share/univention-mail-postfix/listfilter.py", line 214, in <module> print("unknown action in %s" % att, file=sys.stderrr) NameError: name 'att' is not defined → after fixing: # echo | /usr/share/univention-mail-postfix/listfilter.py Traceback (most recent call last): File "/usr/share/univention-mail-postfix/listfilter.py", line 214, in <module> print("unknown action in %s" % attr, file=sys.stderrr) AttributeError: module 'sys' has no attribute 'stderrr'
univention-mail-postfix.yaml 00ebc69e07c2 | Bug #54560: fix defer_if_permit_service unavailable error message univention-mail-postfix (14.0.1-4) 00ebc69e07c2 | Bug #54560: fix defer_if_permit_service unavailable error message
OK: typos fixed OK: YAML
<https://errata.software-univention.de/#/?erratum=5.0x282>