Exemplo n.º 1
0
 def create_plex_account(cls, account):
     try:
         return True, PlexAccount.create(
             account=account
         )
     except (apsw.ConstraintError, peewee.IntegrityError):
         return False, PlexAccount.get(
             account=account
         )
Exemplo n.º 2
0
 def create_plex_account(cls, account):
     try:
         return True, PlexAccount.create(account=account)
     except (apsw.ConstraintError, peewee.IntegrityError):
         return False, PlexAccount.get(account=account)