aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetter Reinholdtsen <pere@hungry.com>2014-12-18 22:16:57 +0100
committerPetter Reinholdtsen <pere@hungry.com>2014-12-18 22:16:57 +0100
commitd88d995478f38b73a7421aee7cfa6e743ad746bd (patch)
tree18549d6539e2ce0a5f80b525c8b3534892a4fb5c
parenta3406456d0f6127b1ceefb17f6e1d698bfaf1515 (diff)
Fix typo.
-rw-r--r--scrapersources/postliste-python-lib4
1 files changed, 2 insertions, 2 deletions
diff --git a/scrapersources/postliste-python-lib b/scrapersources/postliste-python-lib
index 0910afb..7836860 100644
--- a/scrapersources/postliste-python-lib
+++ b/scrapersources/postliste-python-lib
@@ -1,4 +1,4 @@
-# -*- coding: UTF-8 -*-
+# -*- coding: utf-8 -*-
#
# Python library for parsing public post journals (postlister) in Norway.
#
@@ -95,7 +95,7 @@ class JournalParser:
raise ValueError("Missing required field " + field)
if not self.is_valid_doctype(entry['doctype']):
- raise ValueError("Invalid doctype " + doctype)
+ raise ValueError("Invalid doctype " + entry['doctype'])
if -1 != entry['caseid'].find('-'):
raise ValueError("Field caseid should not include dash: " + entry['caseid'])