Skip to content

Commit 87507df

Browse files
committed
neato: minor bugfix for exception warning output
1 parent bf4a9c8 commit 87507df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

neato/robot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ def __get_current_date(self):
375375
try:
376376
locale.setlocale(locale.LC_TIME, 'en_US.utf8')
377377
except locale.Error as e:
378-
self.logger.error("Robot: Locale setting error. Please install locale en_US.utf8: "+e)
378+
self.logger.error(f"Robot: Locale setting error. Please install locale en_US.utf8: {e}")
379379
return None
380380
date = time.strftime('%a, %d %b %Y %H:%M:%S', time.gmtime()) + ' GMT'
381381
locale.setlocale(locale.LC_TIME, saved_locale)

0 commit comments

Comments
 (0)