mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-03 14:04:51 +00:00
Make PhoneNumberBanned error looking more gentle
This commit is contained in:
parent
214d3fe0bc
commit
00a02472f5
1 changed files with 1 additions and 4 deletions
|
|
@ -274,7 +274,7 @@ class Client:
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
break
|
break
|
||||||
except PhoneNumberInvalid as e:
|
except (PhoneNumberInvalid, PhoneNumberBanned) as e:
|
||||||
if phone_number_invalid_raises:
|
if phone_number_invalid_raises:
|
||||||
raise
|
raise
|
||||||
else:
|
else:
|
||||||
|
|
@ -283,9 +283,6 @@ class Client:
|
||||||
except FloodWait as e:
|
except FloodWait as e:
|
||||||
print(e.MESSAGE.format(x=e.x))
|
print(e.MESSAGE.format(x=e.x))
|
||||||
time.sleep(e.x)
|
time.sleep(e.x)
|
||||||
except PhoneNumberBanned as e:
|
|
||||||
log.error(e, exc_info=True)
|
|
||||||
raise
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
log.error(e, exc_info=True)
|
log.error(e, exc_info=True)
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue