log if no user
This commit is contained in:
parent
1e2445061f
commit
e1aa68029d
2 changed files with 5 additions and 1 deletions
|
@ -311,6 +311,8 @@ class DbTransfer(TransferBase):
|
|||
|
||||
rows = self.pull_db_users(conn)
|
||||
conn.close()
|
||||
if len(rows) == 0:
|
||||
logging.warn('no user in db')
|
||||
return rows
|
||||
|
||||
def pull_db_users(self, conn):
|
||||
|
@ -517,5 +519,7 @@ class MuJsonTransfer(TransferBase):
|
|||
except Exception as e:
|
||||
logging.error(e)
|
||||
|
||||
if len(rows) == 0:
|
||||
logging.warn('no user in json file')
|
||||
return rows
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue