Skip to content
Snippets Groups Projects
Commit aba8fc6b authored by Riccardo Sellari's avatar Riccardo Sellari
Browse files

no bananas version

parent c76c3a3d
No related branches found
No related tags found
No related merge requests found
......@@ -55,12 +55,12 @@ args = parser.parse_args()
#log in the influx DB
#python memcached2Influx.py -s vldantemon003.lnf.infn.it -po 8086 -f '/home/riccardo/Random bs go/Test/cofnigurationFile.txt'
#try:
clientInflux = InfluxDBClient(host=args.server, port=args.port, username=args.username, password=args.password)
clientInflux.switch_database("dcsMemDb")
print("succesfully logged in\n")
#except:
# sys.exit("Error: Invalid parameters, please try again")
try:
clientInflux = InfluxDBClient(host=args.server, port=args.port, username=args.username, password=args.password)
clientInflux.switch_database("dcsMemDb")
print("succesfully logged in\n")
except:
sys.exit("Error: Invalid parameters, please try again")
#log in the memcached DB
#memcached_server = "192.168.198.20"
......@@ -82,4 +82,4 @@ try:
except FileNotFoundError as e:
sys.exit("Error: " + args.iptable + " is not valid or does not point to a DBFile.")
except TypeError as e:
print("banana")
\ No newline at end of file
print("program ended succesfully")
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment