projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix TeleAPI import (what kind of crack was Christopher smoking that he couldn't fix...
[freeside.git]
/
FS
/
bin
/
freeside-eftca-download
diff --git
a/FS/bin/freeside-eftca-download
b/FS/bin/freeside-eftca-download
index
caf9e0e
..
56d82c7
100755
(executable)
--- a/
FS/bin/freeside-eftca-download
+++ b/
FS/bin/freeside-eftca-download
@@
-57,7
+57,10
@@
my $conf = new FS::Conf;
my @agents;
if ( $conf->exists('batch-spoolagent') ) {
my @agents;
if ( $conf->exists('batch-spoolagent') ) {
- @agents = qsearch('agent', { 'disabled' => '' });
+ local $@;
+ eval { @agents = qsearch('agent', { 'disabled' => '' }); };
+ log_error_and_die("Fatal database error: $@")
+ if $@;
} else {
@agents = (1);
}
} else {
@agents = (1);
}