python3: use modern exception syntax

This commit is contained in:
Eli Schwartz 2019-04-22 12:31:05 -04:00 committed by Jim Miller
parent 4a3640cc33
commit dc77754c1a

View file

@ -1055,7 +1055,7 @@ class FanFicFarePlugin(InterfaceAction):
for x in range(0,2):
try:
adapter.getStoryMetadataOnly(get_cover=False)
except exceptions.FailedToLogin, f:
except exceptions.FailedToLogin as f:
logger.warn("Login Failed, Need Username/Password.")
userpass = UserPassDialog(self.gui,url,f)
userpass.exec_() # exec_ will make it act modal