Skip to content

Commit eb66eba

Browse files
committed
Minor refactor
1 parent 1415d0b commit eb66eba

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

msal/oauth2cli/authcode.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,7 @@ def get_auth_code(self):
109109
# Derived from
110110
# https://docs.python.org/2/library/basehttpserver.html#more-examples
111111
self.handle_request()
112-
except ValueError:
113-
break
114-
except IOError: # Python 2 throws an IOError handle timeout closes server
112+
except (IOError, ValueError):
115113
break
116114
finally:
117115
self.server_close()

0 commit comments

Comments
 (0)