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 #25

Open
TruongNGM opened this issue Nov 16, 2023 · 1 comment
Open

AttributeError #25

TruongNGM opened this issue Nov 16, 2023 · 1 comment
Assignees

Comments

@TruongNGM
Copy link

Please type any relevant information here

Trace Log

Traceback (most recent call last):
  File "C:\Users\TruongN\AppData\Roaming\FlowLauncher\Plugins\General Converter-2.0.1\plugin\general_converter.py", line 63, in query
    do_convert = gen_convert(float(args[0]), args[1], args[2])
                             ^^^^^^^^^^^^^^
ValueError: could not convert string to float: '25lb'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\TruongN\AppData\Roaming\FlowLauncher\Plugins\General Converter-2.0.1\lib\flox\launcher.py", line 44, in run
    results = request_method(*request_parameters) or self._results
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\TruongN\AppData\Roaming\FlowLauncher\Plugins\General Converter-2.0.1\lib\flox\__init__.py", line 132, in _query
    self.query(query)
  File "C:\Users\TruongN\AppData\Roaming\FlowLauncher\Plugins\General Converter-2.0.1\plugin\general_converter.py", line 95, in query
    self.add_item(title="Error - {}").format(repr(e), subtitle="")
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'dict' object has no attribute 'format'

@deefrawley deefrawley self-assigned this Nov 17, 2023
@deefrawley
Copy link
Owner

You need a space between the amount and the source, but I also need to trap this error and handle it better.

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

2 participants