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

if to.lstrip("-+").isdigit(): AttributeError: 'int' object has no attribute 'lstrip' #197

Closed
Muhammad-Aadil opened this issue Jun 17, 2023 · 3 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@Muhammad-Aadil
Copy link

  • telegram-upload version: latest
  • Python version: 3.9
  • Operating System: Linux
  • Dependencies list (run pip freeze):

Description

I am trying to upload a text file on my channel, using interactive mode (telegram-upload -i) but does not work.

What I Did

Traceback (most recent call last):
  File "/usr/local/bin/telegram-upload", line 8, in <module>
    sys.exit(upload_cli())
  File "/usr/local/lib/python3.10/dist-packages/telegram_upload/exceptions.py", line 64, in wrap
    return fn(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/click/core.py", line 1128, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/click/core.py", line 1053, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python3/dist-packages/click/core.py", line 1395, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib/python3/dist-packages/click/core.py", line 754, in invoke
    return __callback(*args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/telegram_upload/management.py", line 182, in upload
    if to.lstrip("-+").isdigit():
AttributeError: 'int' object has no attribute 'lstrip'
@Nekmo
Copy link
Owner

Nekmo commented Jun 17, 2023

Hi, this is a bug in the 0.6.0 version. You can try to install the old version 0.5.1 meanwhile. This bug will be fixed with priority. thanks for reporting.

pip install telegram-upload==0.5.1

@Nekmo Nekmo self-assigned this Jun 17, 2023
@Nekmo Nekmo added the bug Something isn't working label Jun 17, 2023
@Nekmo Nekmo added this to the v0.6.1 milestone Jun 17, 2023
@Muhammad-Aadil
Copy link
Author

okay, Thank you ;)

Nekmo pushed a commit that referenced this issue Jun 17, 2023
@Nekmo
Copy link
Owner

Nekmo commented Jun 17, 2023

Fixed in version v0.6.1. Thanks!

@Nekmo Nekmo closed this as completed Jun 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants