UnboundLocalError: local variable 'file_name_suffix' referenced before assignment

XMLWordPrintable

    • Severity 3 - Minor

      NOTE: This bug report is for Confluence Server. Using Confluence Cloud? See the corresponding bug report.

      Traceback (most recent call last):

      File "/opt/python/domains/atlassian.com/answers/lib/python2.6/site-packages/django/core/handlers/base.py", line 100, in get_response
      response = callback(request, *callback_args, **callback_kwargs)

      File "/opt/python/domains/atlassian.com/answers/ADM-19602/forum/views/writers.py", line 76, in upload
      result = xml_template % ('', _('uploading images is limited to users with >60 karma points'), '', file_name_suffix[1:], file_type, f.name)

      UnboundLocalError: local variable 'file_name_suffix' referenced before assignment

            Assignee:
            eternicode
            Reporter:
            Jeremy Largman
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: