Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'tuple' object has no attribute 'replace', #1

Open
ohli opened this issue Oct 4, 2022 · 0 comments
Open

AttributeError: 'tuple' object has no attribute 'replace', #1

ohli opened this issue Oct 4, 2022 · 0 comments

Comments

@ohli
Copy link

ohli commented Oct 4, 2022

olympus-photosync get -d . --on today
Traceback (most recent call last):
  File "/home/ohli/.local/bin/olympus-photosync", line 8, in <module>
    sys.exit(main())
  File "/home/ohli/.local/lib/python3.10/site-packages/olympusphotosync/cli.py", line 217, in main
    opts, cmd, args = parseopts(argv)
  File "/home/ohli/.local/lib/python3.10/site-packages/olympusphotosync/cli.py", line 92, in parseopts
    opts.newer = opts.on.replace(hour=0, minute=0, second=0, microsecond=0)
AttributeError: 'tuple' object has no attribute 'replace'

Occured with Python 3.10.7, Arch Linux with Kernel 5.19.12

Seems that optparse has no replace method anymore.

(if this project is dead, I use it as a reminder for myself to fix it)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant