aboutsummaryrefslogtreecommitdiffstats
path: root/dbparse.py
diff options
context:
space:
mode:
Diffstat (limited to 'dbparse.py')
-rwxr-xr-xdbparse.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/dbparse.py b/dbparse.py
index 15ac73d..2c0d738 100755
--- a/dbparse.py
+++ b/dbparse.py
@@ -143,9 +143,9 @@ class DBParser(object):
if end <= 0:
self._syntax_error("Invalid end freq (%d)" % end)
if start > end:
- self._syntax_error("Inverted freq range it seems (%d - %d)" % (start, end))
- if end - start <= 0:
- self._syntax_error("Invalid bandwidth (%d)" % bw)
+ self._syntax_error("Inverted freq range (%d - %d)" % (start, end))
+ if start == end:
+ self._syntax_error("Start and end freqs are equal (%d)" % start)
if end - start < bw:
self._syntax_error("Invalid bandwidth: %d width channel "
"cannot possibly fit between %d - %d" % (bw, start, end))