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

Crash when bad match entered #41

Closed
Kraymer opened this issue Jan 9, 2016 · 3 comments
Closed

Crash when bad match entered #41

Kraymer opened this issue Jan 9, 2016 · 3 comments
Labels

Comments

@Kraymer
Copy link
Owner

Kraymer commented Jan 9, 2016

STR: enter a string that doesn't figure in payee field

Traceback (most recent call last):
  File "/usr/local/bin/qifqif", line 9, in <module>
    load_entry_point('qifqif==0.5.1', 'console_scripts', 'qifqif')()
  File "/usr/local/lib/python2.7/site-packages/qifqif/__init__.py", line 350, in main
    transacs = process_file(transacs_orig, options=args)
  File "/usr/local/lib/python2.7/site-packages/qifqif/__init__.py", line 237, in process_file
    cat, match = process_transaction(t, options)
  File "/usr/local/lib/python2.7/site-packages/qifqif/__init__.py", line 224, in process_transaction
    ruler = query_ruler(t)
  File "/usr/local/lib/python2.7/site-packages/qifqif/__init__.py", line 164, in query_ruler
    ok, extras = check_ruler(ruler, t)
  File "/usr/local/lib/python2.7/site-packages/qifqif/__init__.py", line 136, in check_ruler
    extras[field_ko] = TERM.red('✖ %s' % field_ko.title())
AttributeError: 'dict' object has no attribute 'title'
@flywire
Copy link

flywire commented Jan 10, 2016

Same here with new install running under Win7-32:

F:\QifQif-Test\QIFQIF~2>qifqif TransactionHistory-2.qif
Traceback (most recent call last):
File "C:\Python27\Scripts\qifqif-script.py", line 9, in
load_entry_point('qifqif==0.5.1', 'console_scripts', 'qifqif')()
File "C:\Python27\lib\site-packages\qifqif__init__.py", line 350, in main
transacs = process_file(transacs_orig, options=args)
File "C:\Python27\lib\site-packages\qifqif__init__.py", line 237, in process_file
cat, match = process_transaction(t, options)
File "C:\Python27\lib\site-packages\qifqif__init__.py", line 207, in process_transaction
print('---\n' + TERM.clear_eol, end='')
TypeError: coercing to Unicode: need string or buffer, function found

@Kraymer
Copy link
Owner Author

Kraymer commented Jan 10, 2016

thanks for the report @flywire , it is in fact another bug, please follow its resolution at #42

@flywire
Copy link

flywire commented Jan 11, 2016

V0.6.0 works no problem.

@Kraymer Kraymer reopened this Jan 16, 2016
Kraymer added a commit that referenced this issue Jan 16, 2016
fix #41 handle ko fields when printing transaction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants