Skip to content

Commit 81ae52c

Browse files
committed
chore: 2nd pass for errors
1 parent f7ff82c commit 81ae52c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

firebase_admin/_auth_utils.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,9 @@ def validate_custom_claims(custom_claims, required=False):
257257

258258
def validate_action_type(action_type):
259259
if action_type not in VALID_EMAIL_ACTION_TYPES:
260-
raise ValueError(f'Invalid action type provided action_type: {action_type}. \
261-
Valid values are {", ".join(VALID_EMAIL_ACTION_TYPES)}')
260+
raise ValueError(
261+
f'Invalid action type provided action_type: {action_type}. Valid values are '
262+
f'{", ".join(VALID_EMAIL_ACTION_TYPES)}')
262263
return action_type
263264

264265
def validate_provider_ids(provider_ids, required=False):

firebase_admin/_messaging_encoder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ def encode_milliseconds(cls, label, msec):
265265
nanos = int((total_seconds - seconds) * 1e9)
266266
if nanos:
267267
return f'{seconds}.{str(nanos).zfill(9)}s'
268-
return f'{seconds}s'.format(seconds)
268+
return f'{seconds}s'
269269

270270
@classmethod
271271
def encode_android_notification(cls, notification):

0 commit comments

Comments
 (0)