Bug 54560 - mail/univention-mail-postfix/share/listfilter.py: undefined name 'att' [F821]
mail/univention-mail-postfix/share/listfilter.py: undefined name 'att' [F821]
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Mail
UCS 5.0
Other Linux
: P5 normal (vote)
: UCS 5.0-1-errata
Assigned To: Maximilian Janßen
Florian Best
:
Depends on: 53463
Blocks:
  Show dependency treegraph
 
Reported: 2022-03-16 14:01 CET by Maximilian Janßen
Modified: 2022-04-06 17:31 CEST (History)
1 user (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 3: Simply Wrong: The implementation doesn't match the docu
Who will be affected by this bug?: 1: Will affect a very few installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.034
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional): bitesize, Regression
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maximilian Janßen univentionstaff 2022-03-16 14:01:28 CET
+++ 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")
Comment 1 Florian Best univentionstaff 2022-03-16 14:07:25 CET
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'
Comment 2 Maximilian Janßen univentionstaff 2022-03-25 15:32:33 CET
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
Comment 3 Florian Best univentionstaff 2022-04-04 15:42:07 CEST
OK: typos fixed
OK: YAML