#809 buildNotification tasks fail with: AttributeError: DateTime instance has no attribute 'rfind'
Closed: Duplicate Opened by jflorian.

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/koji/daemon.py", line 1219, in runTask
    response = (handler.run(),)
  File "/usr/lib/python2.7/site-packages/koji/tasks.py", line 162, in run
    return koji.util.call_with_argcheck(self.handler, self.params, self.opts)
  File "/usr/lib/python2.7/site-packages/koji/util.py", line 205, in call_with_argcheck
    return func(*args, **kwargs)
  File "/usr/sbin/kojid", line 4768, in handler
    creation_time = koji.formatTimeLong(build['creation_time'])
  File "/usr/lib/python2.7/site-packages/koji/__init__.py", line 2787, in formatTimeLong
    localtime = time.mktime(time.strptime(formatTime(value), '%Y-%m-%d %H:%M:%S'))
  File "/usr/lib/python2.7/site-packages/koji/__init__.py", line 2773, in formatTime
    dotidx = value.rfind('.')
AttributeError: DateTime instance has no attribute 'rfind'

I'm having deja vu here. When entering this ticket's title, my browser auto-completed exactly as is before I had all of "build" typed in. Yet I can't find where that might have come from.

This occurred with python2-koji-1.14.0-1.fc27.noarch and python2-koji-1.14.0-1.fc26.noarch after a successful buildArch and tagBuild on each builder.


Can't explain my deja vu, but this looks like #623 which has been resolved. Guess my time would be better spent begging for 1.15 in the Fedora repos.

Sorry for the noise here.

Metadata Update from @jflorian:
- Issue close_status updated to: Duplicate
- Issue status updated to: Closed (was: Open)

This issue has been migrated to Fedora Forge:
https://forge.fedoraproject.org/koji/koji/issues/809

Please continue any further discussion there.

Metadata