bug fix
This commit is contained in:
parent
a1a31471ee
commit
416d265b2e
|
|
@ -65,8 +65,7 @@ def main():
|
||||||
'''
|
'''
|
||||||
main func to initalize dpt object
|
main func to initalize dpt object
|
||||||
'''
|
'''
|
||||||
p = argparse.ArgumentParser(
|
p = argparse.ArgumentParser(description="DPT Tools")
|
||||||
description="DPT Tools")
|
|
||||||
p.add_argument(
|
p.add_argument(
|
||||||
'--client-id', '-id',
|
'--client-id', '-id',
|
||||||
dest="dpt_id",
|
dest="dpt_id",
|
||||||
|
|
|
||||||
|
|
@ -598,14 +598,13 @@ class DPT():
|
||||||
'''
|
'''
|
||||||
return self.authenticate()
|
return self.authenticate()
|
||||||
|
|
||||||
|
|
||||||
def authenticate(self, client_id_fp="", key_fp="", testmode=False):
|
def authenticate(self, client_id_fp="", key_fp="", testmode=False):
|
||||||
'''
|
'''
|
||||||
authenticate is necessary to send url request
|
authenticate is necessary to send url request
|
||||||
'''
|
'''
|
||||||
# find client_id_fp and key_fp optional
|
# find client_id_fp and key_fp optional
|
||||||
if not client_id_fp or not key_fp:
|
if not client_id_fp or not key_fp:
|
||||||
client_id_fp, key_fp = auto_find_client_key_fps()
|
client_id_fp, key_fp = self.auto_find_client_key_fps()
|
||||||
if not os.path.isfile(client_id_fp) or not os.path.isfile(key_fp):
|
if not os.path.isfile(client_id_fp) or not os.path.isfile(key_fp):
|
||||||
print(
|
print(
|
||||||
"! Err: did not find {0} or {1}"
|
"! Err: did not find {0} or {1}"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue