cur.execute("SELECT id FROM subcat WHERE cat_id='"+str(catid)+"'")
subcatid=0
#if there are no subcategory
try:
subcatid=cur.fetchall()[0][0]
except:
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.