Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
put things together
'''
try:
api_test()
except (EOFError, KeyboardInterrupt, SystemExit):
pass
else:
console.print_error('[-] Error with api_test')
debug_traceback()
if __name__ == '__main__':
try:
ZoomEyeAPI.QRY = console.input_check(
"[*] Your query is: ", allow_blank=False)
ZoomEyeAPI.OUTFILE = '../data/zoomeye-{}.txt'.format(
'-'.join(ZoomEyeAPI.QRY.replace(':', '_').split()))
main()
except KeyboardInterrupt:
print('\n[*] Exiting...')
else:
debug_traceback()