mirror of
https://github.com/dimitri/pgloader.git
synced 2025-08-07 23:07:00 +02:00
Catch IOError: commit code, not wrong example/pgloader.conf
This commit is contained in:
parent
d99fc7ba4c
commit
88db262b89
2
debian/changelog
vendored
2
debian/changelog
vendored
@ -1,4 +1,4 @@
|
|||||||
pgloader (2.2.5~dev) unstable; urgency=low
|
pgloader (2.2.5~dev-1) unstable; urgency=low
|
||||||
|
|
||||||
* Configuration now supports templates
|
* Configuration now supports templates
|
||||||
* Command line option for setting --reformat_path, -R
|
* Command line option for setting --reformat_path, -R
|
||||||
|
@ -26,7 +26,7 @@ trailing_sep = True
|
|||||||
[simple]
|
[simple]
|
||||||
use_template = simple_tmpl
|
use_template = simple_tmpl
|
||||||
table = simple
|
table = simple
|
||||||
filename = simple/simple..data
|
filename = simple/simple.data
|
||||||
columns = a:1, b:3, c:2
|
columns = a:1, b:3, c:2
|
||||||
|
|
||||||
# those reject settings are defaults one
|
# those reject settings are defaults one
|
||||||
|
@ -89,6 +89,9 @@ class TextReader(DataReader):
|
|||||||
except LookupError, e:
|
except LookupError, e:
|
||||||
# codec not found
|
# codec not found
|
||||||
raise PGLoader_Error, "Input codec: %s" % e
|
raise PGLoader_Error, "Input codec: %s" % e
|
||||||
|
except IOError, e:
|
||||||
|
# file not found, for example
|
||||||
|
raise PGLoader_Error, "IOError: %s" % e
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
fd = open(self.filename)
|
fd = open(self.filename)
|
||||||
|
Loading…
Reference in New Issue
Block a user