Questions tagged [except]

Used for the MS .NET LINQ Except() method and the Python except keyword for exception handling. Use the tag sql-except for questions related to the SQL operator EXCEPT

This tag is used for two different things:

  1. The Microsoft [.NET] Framework [LINQ] Except() method which produces set differences of two sequences.

  2. The [Python] keyword except used for exception handling.

Please use the tag for questions related to the SQL operator EXCEPT

598 questions
-1
votes
3 answers

error while using the EXCEPT identifier in sql query

i have a user table with one attribute as habits that has valus like shopping,sports etc. Now when i log in to my application i get the username from the FORM tag and this is used in javascript for further use. I need a query that displays all the…
nagraj h
  • 11
  • 3
-1
votes
2 answers

if window.location == index (homepage)

I wanna do a jquery action on every site except the homepage (index). I can not find out how to setup the if-statement with window.location thanks for your help
Corrado
  • 11
  • 1
-1
votes
1 answer

except script error - extra characters after close-quote while executing

I have a written an except script to ssh to different servers and change .bash_profiles. In my code, i am facing issue with sed command and getting below error. extra characters after close-quote while executing "send "sed -i '/TERM/a…
Nikhil Mehta
  • 25
  • 1
  • 5
-1
votes
2 answers

Is there something like except in jQuery?

How is this possible? Following construction does not work: $('.multibutton').click(function(event) { //.. some stuff before $(this).next('.menu').slideDown( "slow"); // hide all other menus except this.next.menu $('.menu…
Gabriel
  • 81
  • 2
  • 9
-1
votes
1 answer

I tried to do a "Except()" but it did not work

Possible Duplicate: how can I do use Except() between two SelectListItem lists I have two list of type IEnumerable I need to create a new IEnumerable with the elements of the first list that do not exist in the…
Mainer007
  • 23
  • 3
-1
votes
3 answers

Displaying total number of common and uncommon elements between two arrays?

I have two arrays: array testAnswer holds "answers to a exam" and array inputAnswers holds "students answers to the exam". When i run my code, it displays all the common elements of the two arrays(correct answers), and the uncommon elements…
-1
votes
1 answer

c# why is the intersect method returning this?

I have two arrays, array testAnswer holds "answers to a exam" and array inputAnswers holds "students answers to the exam". I am trying to display the correct, and incorrect answers. In other words, trying to show what values testAnswer has that…
-2
votes
1 answer

How to create a simple login authentication?

How to create a simple login authentication? These are my questions: LOGIN AUTHENTICATION AND ACCESS CONTROL MODULE. Expand your system with user login and password authentication, the system should have 3 user types, which are admin,…
jb67
  • 1
  • 1
-2
votes
5 answers

Is it possible to use the "try" Function on an "if" statement?

In my program I have this 2D array: Test=[ ["TestName", "123", "1", "2.5"], ["NameTest", "321", "10", "5.2"], ["jpoj", "321", "10", "5.2"], ["OIAN","oihadIH","oihda","iohda"] ] And, in a while loop, in a for i in range function, there's…
-2
votes
1 answer

Is it possible to catch None in except statement?

I'm working on a program that represents a month in number. Each month name and number are stored in a dictionary, with the key being the month name. The program needs to take the month name as input and output its corresponding number. In case the…
Python learner
  • 1,159
  • 1
  • 8
  • 20
-2
votes
2 answers

Why break wouldn't break out of whileloop in except clause

So I am writing code for a simple socket while True: print('here') connectionSocket, addr = serverSocket.accept() while True: print('inside') try: sentence =…
Lucy Gu
  • 369
  • 1
  • 3
  • 10
-2
votes
2 answers

How to use if else statements inside a try and except condition to find whether a not a number is positive, negative, or zero?

def algop(num): try: if num == 0: return "The number is neither positive nor negative" except: sally = num + 1 if num - sally == -1: return int(num), str("is positive") else: …
-2
votes
1 answer

Python - blocks: try, except

If there are more than one except: branches after the try:, can we say that: one or more of the try: blocks will be executed none of the try: blocks will be executed not more than one try: block will be executed exactly one of the try: blocks will…
-2
votes
2 answers

Restarting a Loop if an error occurs in python

I am having some trouble with a script which produces an IndexError around 1 out 1000 times its run. The script is an add on for a piece of software that I cant actually edit or it crashes the external software im using this for. I am calling this…
MattC1990
  • 57
  • 6
-2
votes
1 answer

Why isn't the except NameError picking up the name error on my code?

I'm trying to have a user input an integer, while trying to catch errors if they put in floaters or strings. Any help would be awesome guys!! try: user_input = int(input()) except ValueError: print("Please enter a whole number with no…
Phoenix
  • 3
  • 2