Skip to content

Commit 71f1147

Browse files
authored
pyrofork: Fix attribute error
1 parent 8db18a7 commit 71f1147

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pyrogram/types/user_and_chats/birthday.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ def __init__(
5050

5151
@staticmethod
5252
def _parse(birthday: "raw.types.Birthday" = None) -> "Birthday":
53+
if not birthday:
54+
return
5355
return Birthday(
5456
day=birthday.day,
5557
month=birthday.month,

0 commit comments

Comments
 (0)