Skip to content
Snippets Groups Projects
Commit e17b9aba authored by Derrode Stéphane's avatar Derrode Stéphane :dromedary_camel:
Browse files

small mistake BE #3

parent 7b52d061
Branches
No related tags found
No related merge requests found
......@@ -122,8 +122,8 @@ if __name__ == '__main__':
curseur.execute("SELECT nom, ville FROM hotel;")
print(curseur.fetchall())
except Exception as err: # interception d'une exception quelconque
print('type exception: %s' % (type(err).__name__))
print('%s' % (str(err)))
print('type exception: ', type(err).__name__)
print('err: ', str(err))
finally: # fermeture de la base dans tous les cas
conn.close()
```
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment