Reworked some code to keep pylint happy.

master
Pacman Ghost 4 years ago
parent 0680fb3863
commit 55c9c711d1
  1. 6
      vasl_templates/webapp/vo_utils.py

@ -306,8 +306,10 @@ def _make_comments( vo_entry, nat, vo_type, disabled_note_ids ): #pylint: disabl
orig_note_id = note_id
force_auto_comment = False
nat2 = nat
nat_type = globvars.template_pack[ "nationalities" ].get( nat, {} ).get( "type" ) \
if globvars.template_pack else None
if globvars.template_pack:
nat_type = globvars.template_pack[ "nationalities" ].get( nat, {} ).get( "type" )
else:
nat_type = None
if nat in ( "kfw-uro", "kfw-bcfk", "kfw-un-common" ):
nat2 = "kfw-un"
elif nat in ( "kfw-kpa", "kfw-cpva" ):

Loading…
Cancel
Save