diff --git a/nagixsc_conf2xml.py b/nagixsc_conf2xml.py
index 42ebcbcb5b29599055c03a666f9f30c59e39b3b4..a5f3f1374e5f117abd3d075a70fc1d550398eeb3 100755 (executable)
--- a/nagixsc_conf2xml.py
+++ b/nagixsc_conf2xml.py
##############################################################################
-if options.encoding not in available_encodings():
+if not check_encoding(options.encoding):
print 'Wrong encoding method "%s"!' % options.encoding
- print 'Could be one of: %s' % ', '.join(available_encodings)
+ print 'Could be one of: "%s"' % '", "'.join(available_encodings())
sys.exit(127)
##############################################################################