Code

Move encoding check to "nagixsc.py"
[nagixsc.git] / nagixsc_conf2xml.py
index 42ebcbcb5b29599055c03a666f9f30c59e39b3b4..a5f3f1374e5f117abd3d075a70fc1d550398eeb3 100755 (executable)
@@ -33,9 +33,9 @@ parser.set_defaults(verb=0)
 
 ##############################################################################
 
-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)
 
 ##############################################################################