-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error "NoneType" #2
Comments
Dalam kasus error tersebut, jika Untuk mengatasi masalah ini, Anda dapat menambahkan pengecekan tambahan untuk memastikan
else:
rog = pos.find('form',{'method':'post'})
if 'login/device-based/update-nonce' in str(rog['action']): #--> Jika Masuk Menu Save Device
self.scrap2(rog)
elif 'conf/notifmedium/send_code' in str(rog['action']): #--> Jika Langsung Masuk Menu Minta Kode Nope
self.scrap3(rog)
elif 'checkpoint' in str(rog['action']): #--> Jika Checkpoint
self.printing('CP')
else:
print('\rTerjadi Kesalahan ',end='');sys.stdout.flush()
else:
rog = pos.find('form',{'method':'post'})
if rog is not None:
if 'login/device-based/update-nonce' in str(rog.get('action', '')):
self.scrap2(rog)
elif 'conf/notifmedium/send_code' in str(rog.get('action', '')):
self.scrap3(rog)
elif 'checkpoint' in str(rog.get('action', '')):
self.printing('CP')
else:
print('\rTerjadi Kesalahan ',end='');sys.stdout.flush() Dengan menggunakan metode |
Traceback (most recent call last):
File "/storage/emulated/0/create.py", line 676, in
menu()
File "/storage/emulated/0/create.py", line 218, in init
self.main_menu()
File "/storage/emulated/0/create.py", line 226, in main_menu
if x in ['1','01','001','a']: menu_create()
^^^^^^^^^^^^^
File "/storage/emulated/0/create.py", line 273, in init
if key/len(auth1) == len(reco)/2: create_fb(); self.hitung(l)
^^^^^^^^^^^
File "/storage/emulated/0/create.py", line 300, in init
self.scrap1()
File "/storage/emulated/0/create.py", line 457, in scrap1
if 'login/device-based/update-nonce' in str(rog['action']): #--> Jika Masuk Menu Save Device
~^^^^^^^^^^
TypeError: 'NoneType' object is not subscriptable
The text was updated successfully, but these errors were encountered: