From ba2d8ae839fb985aa1debaf510f1dfad3df51eba Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sun, 5 Sep 2010 20:02:09 -0400 Subject: [PATCH] Improve error message for old (ASCII) JPK file formats. Michael Haggerty gave me the name of JPK's upgrade script so we can point users in the right direction. --- hooke/driver/jpk.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hooke/driver/jpk.py b/hooke/driver/jpk.py index 3cbe1df..171ce7a 100644 --- a/hooke/driver/jpk.py +++ b/hooke/driver/jpk.py @@ -281,4 +281,7 @@ class JPKDriver (Driver): return info def _read_old(self, path, info): - raise NotImplementedError('No old-style JPK files were available for testing, please send us yours: %s' % path) + raise NotImplementedError( + "Early JPK files (pre-zip) are not supported by Hooke. Please " + "use JPK's `out2jpk-force` script to convert your old files " + "to a more recent format before loading them with Hooke.") -- 2.26.2