Opened 13 years ago

Last modified 4 years ago

#8688 new defect

Creating a ticket with the plugin enabled causes an error — at Version 2

Reported by: a.nehmer@… Owned by: Emilien Klein
Priority: normal Component: TicketModifiedFilesPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.12

Description (last modified by Ryan J Ollos)

Error: AttributeError: 'NoneType' object has no attribute 'close'

StackTrace:

Datei "/usr/lib/python2.6/site-packages/Trac-0.12.2-py2.6.egg/trac/web/main.py", Zeile 511, in _dispatch_request
  dispatcher.dispatch(req)
Datei "/usr/lib/python2.6/site-packages/Trac-0.12.2-py2.6.egg/trac/web/main.py", Zeile 258, in dispatch
  content_type)
Datei "/usr/lib/python2.6/site-packages/Trac-0.12.2-py2.6.egg/trac/web/chrome.py", Zeile 840, in render_template
  stream |= self._filter_stream(req, method, filename, stream, data)
Datei "/usr/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/core.py", Zeile 132, in __or__
  return Stream(_ensure(function(self)), serializer=self.serializer)
Datei "/usr/lib/python2.6/site-packages/Trac-0.12.2-py2.6.egg/trac/web/chrome.py", Zeile 991, in inner
  data)
Datei "/usr/lib/python2.6/site-packages/TicketModifiedFiles-1.00-py2.6.egg/ticketmodifiedfiles/ticketmodifiedfiles.py", Zeile 75, in filter_stream
  numconflictingtickets = self.__process_ticket_request(req, True)
Datei "/usr/lib/python2.6/site-packages/TicketModifiedFiles-1.00-py2.6.egg/ticketmodifiedfiles/ticketmodifiedfiles.py", Zeile 194, in __process_ticket_request
  repos.close()

The error seems to occur due to an not specified default repository as self.env.get_repository() returns None

Change History (2)

comment:1 Changed 12 years ago by seribralcrow@…

I am having the same issue. Is anyone still actively working on the plugin?

comment:2 Changed 12 years ago by Ryan J Ollos

Description: modified (diff)
Trac Release: 0.110.12
Note: See TracTickets for help on using tickets.