| Summary: | [abrt] pybliographer-1.2.14-1.fc14: Fields.py:261:__init__:DateError: Illegal year value | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Seppo Enarvi <seppo2018> | ||||||
| Component: | pybliographer | Assignee: | Zoltan Kota <zoltank> | ||||||
| Status: | CLOSED UPSTREAM | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
| Severity: | unspecified | Docs Contact: | |||||||
| Priority: | unspecified | ||||||||
| Version: | 14 | CC: | zoltank | ||||||
| Target Milestone: | --- | ||||||||
| Target Release: | --- | ||||||||
| Hardware: | i686 | ||||||||
| OS: | Unspecified | ||||||||
| Whiteboard: | abrt_hash:c268a7d2 | ||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2011-02-08 10:56:34 UTC | Type: | --- | ||||||
| Regression: | --- | Mount Type: | --- | ||||||
| Documentation: | --- | CRM: | |||||||
| Verified Versions: | Category: | --- | |||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||
| Attachments: |
|
||||||||
Created attachment 475798 [details]
File: backtrace
Could you attach a sample isi file? I could not reproduce the error. Thanks! Created attachment 476590 [details]
An example RIS citation file.
Here is an example RIS file that makes the program crash.
Seems like you just should catch some exception when opening a document, in case the input is not valid. Thanks for the file! Well, the RIS format is a bit different from ISI, so if you open the RIS file with the ISI importer, you don't get what you want. But the DateError can be catched I think, and it will be fixed upstream. |
abrt version: 1.1.14 architecture: i686 cmdline: /usr/bin/python /usr/bin/pybliographer --quiet /usr/share/pybliographer/pybliographic.py comment: Probably the file format is incorrect, but the program shouldn't crash anyway. component: pybliographer executable: /usr/bin/pybliographer kernel: 2.6.35.10-74.fc14.i686 package: pybliographer-1.2.14-1.fc14 reason: Fields.py:261:__init__:DateError: Illegal year value release: Fedora release 14 (Laughlin) time: 1296219406 uid: 1004 backtrace ----- Fields.py:261:__init__:DateError: Illegal year value Traceback (most recent call last): File "/usr/share/pybliographer/Pyblio/GnomeUI/Document.py", line 584, in ui_open_document self.open_document (url, how) File "/usr/share/pybliographer/Pyblio/GnomeUI/Document.py", line 625, in open_document data = Open.bibopen (url, how = how) File "/usr/share/pybliographer/Pyblio/Open.py", line 112, in bibopen base = simple_try (url, how) File "/usr/share/pybliographer/Pyblio/Open.py", line 94, in simple_try base = opener (url, 0) File "/usr/share/pybliographer/Pyblio/Format/isifile.py", line 369, in opener base = Isifile (url) File "/usr/share/pybliographer/Pyblio/Format/isifile.py", line 258, in __init__ entry = iter.first () File "/usr/share/pybliographer/Pyblio/Format/isifile.py", line 94, in first return self.next() File "/usr/share/pybliographer/Pyblio/Format/isifile.py", line 200, in next in_table['date'] = Fields.Date(val) File "/usr/share/pybliographer/Pyblio/Fields.py", line 261, in __init__ raise Exceptions.DateError (_("Illegal year value")) DateError: Illegal year value Local variables in innermost frame: How to reproduce ----- 1. Choose File > Open. 2. Select bibliography type "ISIFile". 3. Select an RIS citation file.