修复设备id不存在返回异常

dependabot/npm_and_yarn/fir_admin/tmpl-1.0.5
youngS 3 years ago
parent e84f47170a
commit 45978aae73
  1. 2
      fir_ser/api/utils/app/iossignapi.py

@ -340,7 +340,7 @@ class AppDeveloperApiV2(object):
try: try:
apple_obj = AppStoreConnectApi(self.issuer_id, self.private_key_id, self.p8key) apple_obj = AppStoreConnectApi(self.issuer_id, self.private_key_id, self.p8key)
devices_obj_list = apple_obj.list_enabled_devices() devices_obj_list = apple_obj.list_enabled_devices()
if devices_obj_list: if devices_obj_list is not None:
return True, devices_obj_list return True, devices_obj_list
except Exception as e: except Exception as e:
logger.error("ios developer get device Failed Exception:%s" % e) logger.error("ios developer get device Failed Exception:%s" % e)

Loading…
Cancel
Save