warn if incorrect node id
This commit is contained in:
parent
b3fcee662a
commit
5e485eb2be
1 changed files with 3 additions and 2 deletions
|
@ -311,7 +311,7 @@ class DbTransfer(TransferBase):
|
|||
|
||||
rows = self.pull_db_users(conn)
|
||||
conn.close()
|
||||
if len(rows) == 0:
|
||||
if not rows:
|
||||
logging.warn('no user in db')
|
||||
return rows
|
||||
|
||||
|
@ -439,6 +439,7 @@ class Dbv3Transfer(DbTransfer):
|
|||
rows = []
|
||||
cur.close()
|
||||
conn.commit()
|
||||
logging.warn('None result when select node info from ss_node in db, maybe you set the incorrect node id')
|
||||
return rows
|
||||
cur.close()
|
||||
|
||||
|
@ -519,7 +520,7 @@ class MuJsonTransfer(TransferBase):
|
|||
except Exception as e:
|
||||
logging.error(e)
|
||||
|
||||
if len(rows) == 0:
|
||||
if not rows:
|
||||
logging.warn('no user in json file')
|
||||
return rows
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue